Home >Backend Development >PHP Tutorial >Get the number of changed rows after php updates mysql_PHP tutorial
Get the number of changed rows after a php updates mysql. Provide a mysql function in php to get the number of records affected by the last executed query: mysql_affected_rows(), which returns the most recent INSERT, UPDATE or DELETE query associated with the connection handle. Number of record rows affected. FOUND_ROWS() : select ROW_COUNT() : update delete insert.
The following is the main content description of the article.
The code is as follows
|
Copy code
|
||||||||
found_rows() : select row_count() : update delete insert
|
The code is as follows | Copy code
|