Mercurial > hg > index.fcgi > www > www-1
comparison index.php @ 142:2ed8cf5f36bf
myrss2: fix handling of null feed title or links; miscellaneous URL updates
author | paulo |
---|---|
date | Mon, 18 Dec 2023 20:10:27 +0000 |
parents | 6d959c2ed416 |
children |
comparison
equal
deleted
inserted
replaced
1:3fd1e35892c8 | 2:dea9c0578864 |
---|---|
25 | 25 |
26 $db_selected = mysql_select_db($database, $link); | 26 $db_selected = mysql_select_db($database, $link); |
27 if (!$db_selected) | 27 if (!$db_selected) |
28 die('Could not select database: ' . mysql_error()); | 28 die('Could not select database: ' . mysql_error()); |
29 | 29 |
30 $query = 'SELECT * FROM Links'; | 30 $query = 'SELECT * FROM Links ORDER BY LastMod DESC'; |
31 $results = mysql_query($query); | 31 $results = mysql_query($query); |
32 | 32 |
33 while ($row = mysql_fetch_assoc($results)) { | 33 while ($row = mysql_fetch_assoc($results)) { |
34 echo '<DT>'; | 34 echo '<DT>'; |
35 echo '<A HREF="'.$row['URL'].'">'.$row['Title'].'</A>'; | 35 echo '<A HREF="'.$row['URL'].'">'.$row['Title'].'</A>'; |