I don't understand something. mysql_num_rows() should give me the number of returned results from a query, right?
So if I have this code:
$query4= "select * from settings";
$result4= mysql_query($query4)
or die("Couldn't execute query");
$num1= mysql_num_rows($query4);
why am I getting this error when I run the page:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in localhost/test.php on line 19
any help would be appreciated!