1
mirror of https://github.com/jakejarvis/spoons.git synced 2025-06-29 02:05:40 -04:00

sort inactive spooners by time spooned, earliest last

This commit is contained in:
2013-05-19 22:12:23 -04:00
parent 0d05af80a6
commit aca26aa06c

View File

@ -213,7 +213,7 @@ $result = mysql_query("SELECT id, first, last FROM spooners WHERE spooned = 0 OR
<hr>
<?php
$result = mysql_query("SELECT id, first, last, spooned_by, time_spooned FROM spooners WHERE spooned = 1 ORDER BY first") or die(mysql_error());
$result = mysql_query("SELECT id, first, last, spooned_by, time_spooned FROM spooners WHERE spooned = 1 ORDER BY time_spooned DESC") or die(mysql_error());
?>
<h4>Dead Spooners (<?php echo mysql_num_rows($result) ?>)</h4>