Search code examples
phpmysql

How do you get the actual, specific changed rows after an update statement in MySQL using PHP?


How do I get the number changed rows (rather than just the number of rows affected) after an update statement in MySQL using PHP?


Solution

  • mysql_info — Get information about the most recent query

    $recent = mysql_info();
    

    Useful implementation Example