I have this query and if it returns successful, I want another function to process, if not, do not process that function.
Here is the code for running the query
mysql_affected_rows
I understand that by saying "successful" you want to know if any rows have been updated. You can check it with this function.
If you use PDO -> http://www.php.net/manual/en/pdostatement.rowcount.php