php mysql_result(mysql_query("SELECT COUNT(*) AS?

reblerebel

New member
i have some php that connects to the database and checks for updates and if there are then it refreshes the page but it keep getting :

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in location location location /reload.php on line 4

this is the code:

<?php

$the_count = mysql_result(mysql_query("SELECT COUNT(*) AS id FROM tall"),0,0);

echo $the_count;

?>

any soloutions
thanks
 
Back
Top