but do not leave it this way as
you will be wide open for intrusion.
BJH
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 8:27 PM
To: Bryan McLemore; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Re: mysql_connect
On 3 Sep 2002 at 23:00, Bryan
PROTECTED]
Subject: Re: [PHP-DB] Re: mysql_connect
On 3 Sep 2002 at 23:00, Bryan McLemore wrote:
- Original Message -
From: David Robley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 03, 2002 9:31 PM
Subject: [PHP-DB] Re: mysql_connect
In article 000c01c253b2
.
Bryan
- Original Message -
From: David Robley [EMAIL PROTECTED]
To: Bryan McLemore [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, September 05, 2002 8:26 PM
Subject: Re: [PHP-DB] Re: mysql_connect
On 3 Sep 2002 at 23:00, Bryan McLemore wrote:
- Original Message -
From
In article 000c01c253b2$506d7530$0101a8c0@fwcmain, [EMAIL PROTECTED]
says...
I'm trying to connect using the sample code in the php documentation. IT however
dies every time. If someone could please help me? Thanks.
Bryan
Can you show the code you are using, and any error messages you
try this.
?php
$sqlhost = localhost;
$sqluser = root;
$sqlpasswd = password;
$sqldatabase = test;
//using pconnect to stay connect all the time to
//close the connect use mysql_close($link);
$link = mysql_pconnect($sqlhost,$sqluser,$sqlpasswd);
mysql_select_db($sqldatabase);
?
- Original
Dear Martin,
Why don't you try this :
?
$link = mysql_connect(localhost,phpcoder_dk,pdw );
if (!$link) {
print(Connection fail);
exit();
}else{
if (!mysql_select_db(phpcoder_dk,$link)) {
print(Error);
Hi Martin!
I dont think I understood your question right here.
Are you trying to connect to mysql ?
regards Raymond
Martin Allan Jensen [EMAIL PROTECTED] wrote in message
005901c1b40d$6143c390$040a@IceSystems">news:005901c1b40d$6143c390$040a@IceSystems...
I just don't understand why