Re: suppressing errors

From: Date: Thu, 25 Jul 2002 19:52:43 +0000
Subject: Re: suppressing errors
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109593@lists.php.net to get a copy of this message
What is the error you get? ---John Holmes... ----- Original Message ----- From: "Preston Wade" <Preston_Wade@hilton.com> To: <php-general@lists.php.net> Sent: Thursday, July 25, 2002 3:20 PM Subject: [PHP] suppressing errors > Hello All, > > I am trying to use the "@" symbol to suppress errors returned by a > mysql_query call. This doesn't seem to be working as I get an new page with > the error in it in my browser. Any help with this would be greatly > appreciated. > > Here is a snippet of the code I am using > > $query = "select user_id from users where username='$username'"; > $query_db = @mysql_query($query, $db_connection); > $row = @mysql_fetch_array($query_db); > if($row) { > $message[] = "That username is already taken. Please select > another."; > } else { > > Thanks, > Preston > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#109593) next »