note 26137 rejected from function.mssql-connect by betz

From: Date: Sat, 19 Oct 2002 11:11:37 +0000
Subject: note 26137 rejected from function.mssql-connect by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-38290@lists.php.net to get a copy of this message
I have following code: <? error_reporting(7); $hCon = mssql_connect ( $ip,$user, $password ); if (!$hCon) { // redirection } ?> Purpose is to redirect connection when it fails. But when I simulate the database is down by changing the user or password I get following warning: Warning: Sybase error: Login failed for user 'user'. (severity 14) in /home/passenger/www/testconnect.php on line 6 and there the executing of the script is stopped, so it never comes to redirection. Does anyone know why is the script execution stopped?

« previous php.notes (#38290) next »