Re: [PHP-DB] Problem with creating parallel connections with mysql_connect

2006-01-18 Thread Bastien Koert
If no connection is made, there is no mysql error. You would need some custom error message output when the mysql_connect fails... Bastien From: Aarno Syvänen <[EMAIL PROTECTED]> To: David Robley <[EMAIL PROTECTED]> CC: php-db@lists.php.net Subject: Re: [PHP-DB] Problem w

Re: [PHP-DB] Problem with creating parallel connections with mysql_connect

2006-01-18 Thread Aarno Syvänen
I go following debug: got error <> when doing first connection resource id was Resource id #3 got error <> when selecting first database got error <> when doing second connection resource id was Resource id #4 got error <> when selecting second database the code was: $bid=mysql_connect($db_serv

Re: [PHP-DB] Problem with creating parallel connections with mysql_connect

2006-01-18 Thread David Robley
On Wed, 18 Jan 2006 19:51, Aarno Syvänen wrote: > Hi List, > > decided to try non-permanent connections for now. So now I have: > > > /* db.php */ > $db_server="127.0.0.1"; > $db_user = "asterisk"; > $db_pass = "bozzo984"; > $db_db = "bebbicell"; > > $db_account_server="127.0.0.1"; > $db_account_

[PHP-DB] Problem with creating parallel connections with mysql_connect

2006-01-18 Thread Aarno Syvänen
Hi List, decided to try non-permanent connections for now. So now I have: $accid=mysql_connect($db_account_server,$db_account_user, $db_account_pass, $allow_multiple); //error_reporting ( $level); mysql_select_db($db_account_db, $accid); ?> Still I have same error: Warning: mysql_query(): s