What does it mean in PHP when mysqli_num_rows returns -1? [closed]

-3

In a query to MySQL the result return brings the value of -1, what does this mean? I know 0 is when it does not yield any results.

    
asked by anonymous 09.07.2018 / 01:15

1 answer

3

Are you sure you received this in this role? The documentation does not indicate that this is possible, but it also does not indicate that it does not. The PHP documentation is really bad, so I think there might be a flaw there.

It almost certainly indicates an error in the function call. That is, it is not that there are no rows returned in the query, the query failed, and no rows it generated. Check if previous operations were successful.

    
09.07.2018 / 01:30