I get this warning on a PHP script: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/petre/public_html/flash-play.net/index.php on line 109 the code: $check = mysql_query("SELECT * FROM Log WHERE IP='$ip' AND Visit LIKE '%$today%'"); [B]$unique = mysql_num_rows($check);[/B] Code (markup): The bolded line is line 109 Thanks
Hi, try this one: $check = mysql_query("SELECT * FROM Log WHERE IP='$ip' AND Visit LIKE '%$today%'") or die(mysql_error()); PHP: and let me know the result. Can you provide your table structure? Regards
Thanks...your code gave me a more detailed error that helped me solve the problem. I made a typo in the data base and had Visti instead of Visit Thanks again