Monday, 12 August 2013

MySQLi num_rows wrong

MySQLi num_rows wrong

I've got a very strange problem which makes no sense.
I have a MYSQL query which when I paste into PHPMyAdmin gives zero
results. However when I use check the same result with:
$rows=$res->num_rows;
$res has a value of 3. I've check it over and over again and the result
should be 0.
how can this possibly be?
Alan.

No comments:

Post a Comment