|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-27 02:19 UTC] wiesemann@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 08:00:01 2025 UTC |
Description: ------------ hi, i am connecting the database through odbc $dsn = array( 'phptype' => 'odbc', 'username' => 'dba', 'password' => 'root', 'hostspec' => 'localhost', 'database' => 'test', ); $options = array( 'debug' => 2, 'portability' => DB_PORTABILITY_ALL, 'persistent' => true, ); $db =& DB::connect($dsn, $options); if (PEAR::isError($db)) { die($db->getMessage()); } the above code works fine to connect the database. But mean time if server get restart. $db =& DB::connect($dsn, $options); is not throughing error..becouse server has termitted the client server... so it should though the error message at connection time whereas it is giving the error at $db->getAll($sql); function. is that possible for connect method to check wheather server has rejected our connection or not. Please reply me....