ShareThis

Wednesday, June 27, 2012

[PHP] mysqli_num_rows not working

Not sure why this is happening, but my mysqli_num_rows was returning zero when it shouldnt.

My fix was to switch:

mysqli_num_rows($mysqli, $result)

with

$result->num_rows

That accesses the property of the query result num_rows, and works.

0 comments:

Post a Comment