for some reason, this code makes MySQL keep returning the same record. help!
echo "<ul>";
while ($link = mysql_fetch_array(mysql_query("SELECT * FROM agendas ORDER BY date"))) {
echo "<li><a href=\"agendas.php?id=" . $link['id'] . "\">Meeting " . $link['id'] . " (" . $link['date'] . ")</a>";
}
echo "</ul>";