-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:
>
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
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
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 _
4 matches
Mail list logo