Hi,
I have a query that returns me about 10-15 results from a table and I use mysql_num_rows to find out how many times I have to run a loop to print these results.
I have PHP 4.0.5 and MySQL 3.23.40 at home and PHP 4.0.5 and MySQL 3.23.35 on the server.
Now the problem is that at home mysql_num_rows runs perfectly well but when I host it, I get a Warning saying that "Supplied argument is not a valid MySQL result resource". I know I can do it in another way, but I want to know why this thing is not working.
I have a query that returns me about 10-15 results from a table and I use mysql_num_rows to find out how many times I have to run a loop to print these results.
I have PHP 4.0.5 and MySQL 3.23.40 at home and PHP 4.0.5 and MySQL 3.23.35 on the server.
Now the problem is that at home mysql_num_rows runs perfectly well but when I host it, I get a Warning saying that "Supplied argument is not a valid MySQL result resource". I know I can do it in another way, but I want to know why this thing is not working.