RE: [PHP] Re: No Database Connection possible (mySQL)

2008-07-06 Thread Chris Haensel
-Original Message- From: M. Sokolewicz [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2008 10:18 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; php-general@lists.php.net Subject: [PHP] Re: No Database Connection possible (mySQL) David Robley wrote: > Aviation Coding wrote: >

[PHP] Re: No Database Connection possible (mySQL)

2008-07-06 Thread Fabrice VIGNALS
First problem : there are not return in the function as it said Second problem : php make a real connection with a unique id to a server database $server1 = array("localhost","user","pass") $server2 = array("localhost2","user2","pass2") Function mysqlConnectServer($server) { $uid = mysql_conne

[PHP] Re: No Database Connection possible (mySQL)

2008-07-04 Thread M. Sokolewicz
David Robley wrote: Aviation Coding wrote: Hi all, I am having problems with a connection to a mysql database. I am using function con() { mysql_connect("localhost","user","pass") or die(mysql_error()); mysql_select_db("tava") or die(mysql_error()); } Now, when I call the _functio

[PHP] Re: No Database Connection possible (mySQL)

2008-07-04 Thread David Robley
Aviation Coding wrote: > Hi all, > > I am having problems with a connection to a mysql database. > > I am using > > > function con() > { > mysql_connect("localhost","user","pass") or die(mysql_error()); > mysql_select_db("tava") or die(mysql_error()); > } > > > Now, when I call the _