The older mysql extension has the CLIENT_FOUND_ROWS connection flag, but I couldn\'t find any equivalent for mysqli.
CLIENT_FOUND_ROWS
I have an up
up
I used the following code:
// Parse the digits from the info string that has the following format: // Rows matched: 0 Changed: 0 Warnings: 0 preg_match_all('!\d+!', $mysqli->info, $m); return $m[0][0];