If the last query was a DELETE query with no WHERE clause, all of the records will have been deleted from the table but this function will return zero.
Si cet identifiant n'est pas précisé, mysql_affected_rows() utilise la dernière connexion ouverte.