see when i replace
$query = "SELECT name, comments FROM $tablename";
with what you've just given me...
$query = "SELECT name, comments
FROM ".$tablename."
ORDER BY time_submitted DESC";
i seem to get these errors....
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/popcop/public_html/ca/senddata.php on line 34
AND
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/popcop/public_html/ca/senddata.php on line 52
Line 34 is..
$numItems = mysql_num_rows($result);
and line 52 is..
while(list($name, $comments) = mysql_fetch_row($result)) {