Warning: mysql_num_rows() expects parameter 1 to be resourc

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
php-forum Active User
php-forum Active User
Posts: 300
Joined: Sun Dec 11, 2011 12:51 am
Location: Shrewsbury, Shropshire

Sun Mar 03, 2013 12:58 am

The error means that your query is failing (so there are no rows to count) so echo out your $sql and see what exact query it is trying to run on the database and make sure it is correct (if you think it looks correct then copy and paste into PHPMyAdmin and see what error you get there).

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest