06-15-2009, 06:24 PM
|
#9 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
You don't need to provide an argument to mysql_affected_rows because no result set is being returned from mysql_query. The only argument (and it's optional) would be if you wanted to specify the MySQL connection link.
PHP Code:
if (mysql_affected_rows() > 0) { echo 'Some rows were affected!'; }
|
|
|
|