testing if a query was successful

From: Date: Tue, 04 Feb 2003 19:01:07 +0000
Subject: testing if a query was successful
Groups: php.general 
Request: Send a blank email to php-general+get-134313@lists.php.net to get a copy of this message
hi.. how would you use an if..else statement to test a query in mysql to see if it was successfull or not? would it be something like: $query=(query here...); if($query){ statements if successfull?? }else{ statements if not true?? } or would it be something else.. tnx --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003

« previous php.general (#134313) next »