Thread: Error?
View Single Post
Old 06-15-2009, 06:24 PM   #9 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

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!';

Salathe is offline  
Reply With Quote
The Following User Says Thank You to Salathe For This Useful Post:
Randy (06-15-2009)