View Single Post
Old 05-15-2009, 06:05 PM   #5 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Quote:
Originally Posted by sketchMedia View Post
You guess correct , successful or the correct type of query (INSERT, UPDATE etc don't return a result set therefore mysql_query will return a boolean only)
Wow I'm actually right about something.

Since INSERTS/UPDATES don't return result sets, the boolean value can still be used the same way to determine the status of the query correct?

Or would it be better to test for "mysql_affected_rows" instead?
allworknoplay is offline  
Reply With Quote