Hello,
mysql_query() returns non-false even if there was an UPDATE statement and the query was successful.
But if I put the $result variable in mysql_num_rows()
it returns an error, $result in invalid handle.
I was asking how to know that where its an UPDATE statement so I dont call mysql_num_rows() at all.
I Chris said, if($result === true || $result === false), no rows were returned.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php