Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Obtenha o número de linhas correspondidas pela consulta UPDATE com PHP mysqli


Usei o seguinte código:
// 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];