I have the selecting from the last ten entries working, but am unsure how to get the most popular from these ten entries?
Please help if you can, thanks.PHP Code:
<?php
$sql = "SELECT data FROM table_answers ORDER BY id DESC LIMIT 10";
$result = mysql_query ($sql, $db);
while ($row = mysql_fetch_array ($result))
{
echo " [".$row['data']."] ";
}
?>


Reply With Quote







Bookmarks