02-27-2008, 12:03 AM
|
#4 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 87
Thanks: 49
|
Quote:
Originally Posted by TlcAndres
I believe mysql_affected_rows() is what you're looking for, look it up on php.net
|
I don't think that is what I'm looking for.
Quote:
|
Originally Posted by xenon
mysql_query returns a resource on success, and false in case of a failure. It doesn't return 1 in any circumstance.
|
Oh OK. I wasn't sure how it worked, so I thought I would try 1 = true and 0 = false but that didn't work. Do I have the right idea on the second example?
EDIT: Just seen you've added a little to your post. I see... so I'm executing the query twice and inserting the same row twice, DOH!. How else can I check that the query has been executed?
|
|
|
|