Re: Using PHP with MySQL - Can I supress MySQL errors?

From: Date: Tue, 23 Jul 2002 17:02:35 +0000
Subject: Re: Using PHP with MySQL - Can I supress MySQL errors?
Groups: php.general 
Request: Send a blank email to php-general+get-109097@lists.php.net to get a copy of this message
Put an ampersat symbol (@) in front of the function name to suppress errors. $link = @mysql_connect("host", "user", "pass"); Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "DonPro" <donpro@lclcan.com> 07/23/02 12:08PM >>> Hi, I'm using PHP to connect and perform queries with a MySQL database. I've noticed that it there is an error performing certain commands like 'mysql_connect()', I'll get a warning message in the browser. I'd like to suppress these messages as I am storing the error, mysql_error(), in an array. So if there is an error, I would simply display the contents of the array in a nice format. Is this possible? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#109097) next »