mysql_num_rows() expects parameter 1 to be resource, boolean given in [duplicate]

The mysql_query is returning a boolean value meaning the sql query is probably failing and you’re getting a false returned rather than a mysql resource.

Have you checked your query?

Leave a Comment