diff --git a/admin/all.php b/admin/all.php index 84ae68a..5b74cbb 100644 --- a/admin/all.php +++ b/admin/all.php @@ -31,6 +31,8 @@ if ($_GET["responded"] == 1) { echo("response sent!"); } +asort($rows); + echo("

not responded to ({$totalUnresponded})

"); foreach (array_reverse($rows) as $i){ if ($i["isrespondedto"] === "f" && $i["ispublic"] == "t") { diff --git a/index.php b/index.php index f11ac13..6146864 100644 --- a/index.php +++ b/index.php @@ -30,6 +30,8 @@ echo("
"); echo("

all past messages

"); +asort($rows); + foreach (array_reverse($rows) as $i){ if ($i["ispublic"] === "t" && $i["isrespondedto"] === "t") { echo("
");