changeset 50:92e7bc3c5755

sort entries on index.php by LastMod date, descending order
author paulo
date Tue, 12 Mar 2013 22:42:13 -0600
parents 637a4470363b
children bf8c59873212
files index.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/index.php	Tue Mar 12 21:02:29 2013 -0700
     1.2 +++ b/index.php	Tue Mar 12 22:42:13 2013 -0600
     1.3 @@ -27,7 +27,7 @@
     1.4  	if (!$db_selected)
     1.5  		die('Could not select database: ' . mysql_error());
     1.6  	
     1.7 -	$query = 'SELECT * FROM Links';
     1.8 +	$query = 'SELECT * FROM Links ORDER BY LastMod DESC';
     1.9  	$results = mysql_query($query);
    1.10  	
    1.11  	while ($row = mysql_fetch_assoc($results)) {