Re: testing if a query was successful

From: Date: Tue, 04 Feb 2003 18:58:30 +0000
Subject: Re: testing if a query was successful
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134314@lists.php.net to get a copy of this message
--- Sunfire <rusty_81@msn.com> wrote: > how would you use an if..else statement to test a > query in mysql to see if it was successfull or not? Depends on what database server you are using. Here it is in MySQL: if (mysql_query($sql)) { echo "Success"; } else { echo "Failure"; } Chris

« previous php.general (#134314) next »