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];
More Related Contents:
- inserting information and image in php and mysql
- mysqli or die, does it have to die?
- How to display errors for my MySQLi query? [duplicate]
- Fatal error: Call to a member function bind_param() on boolean [duplicate]
- MySQL vs MySQLi when using PHP [closed]
- When should I use MySQLi instead of MySQL?
- Correct way to use LIKE ‘%{$var}%’ with prepared statements?
- Example of how to use bind_result vs get_result
- mysqli::query(): Couldn’t fetch mysqli
- PHP MySQLI Prevent SQL Injection [duplicate]
- How to test if a MySQL query was successful in modifying database table data?
- How can I enable the MySQLi extension in PHP 7?
- mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in [duplicate]
- mysqli_stmt::bind_param(): Number of elements in type definition string doesn’t match number of bind variables
- How can I use mysqli_fetch_array() twice?
- PHP Commands Out of Sync error
- Advantages Of MySQLi over MySQL [closed]
- MYSQLi error: User already has more than ‘max_user_connections’ active connections [duplicate]
- check if the query results empty row mysqli [duplicate]
- using nulls in a mysqli prepared statement
- Is mysql_real_escape_string() necessary when using prepared statements?
- Updating from MYSQL to MYSQLI [duplicate]
- How to prepare statement for update query? [duplicate]
- mysqli – fetch_Array error call to a member function fetch_array() on a non-object mysqli [duplicate]
- PHP to MySQL SSL Connections
- Using Prepared Statement, how I return the id of the inserted row?
- Strange problem with the length of the field gotten from database [duplicate]
- PHP prepared statements and transactions in a loop [duplicate]
- When should I close a database connection in PHP?
- Mysqli multiple row insert, simple multi insert query [duplicate]