There is an actual PHP forum on this site where this might get answered better...
hericles
Practically a Posting Shark
823 posts since Nov 2007
Reputation Points: 136
Solved Threads: 167
mysql_query returns true even if there are no records deleted. Have a look at mysql_affected_rows . Use that to determine if there are either zero, or one or more rows deleted.
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875