note 26137 added to function.mssql-connect
| From: | jenda dot jenda at centrum dot cz | Date: | Sat, 19 Oct 2002 09:06:34 +0000 |
| Subject: | note 26137 added to function.mssql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38287@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?
--
http://www.php.net/manual/en/function.mssql-connect.php
http://master.php.net/manage/user-notes.php?action=edit+26137
http://master.php.net/manage/user-notes.php?action=delete+26137
http://master.php.net/manage/user-notes.php?action=reject+26137