What is wrong with my code?
$query = "SELECT COUNT(*) AS rows FROM ads";
$result = mysql_fetch_row($query);
echo($result['rows']);
i am getting an error:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/carbuys/public_html/place_an_ad3.php on line 9
and its not coming with the right number.....
I dont want to use mysql_num_rows();
please help.
thanks