From: | "Jill Jensen" <jill(dot)jensen(at)aisn(dot)net> |
---|---|
To: | "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: Database connection |
Date: | 2003-01-29 16:56:17 |
Message-ID: | 028001c2c7b7$57b90100$ea265e40@aisn.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Hi Tom:
Thanks for the help.
Best regards,
Jill Jensen, MCP
Operations Manager
jill(dot)jensen(at)aisn(dot)net
AIS Network
Internet Services Worldwide
http://www.aisn.net
Office: 847. 202. 1400 x 27
Fax: 847-202-4460
Cell: 847. 530. 7845
-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Wednesday, January 29, 2003 1:02 AM
To: jill(dot)jensen(at)aisn(dot)net
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: [NOVICE] Database connection
"Jill Jensen" <jill(dot)jensen(at)aisn(dot)net> writes:
> $host = "localhost";
> $user = "srproject";
> $pass = "56364563";
> $db = "srproject";
> //open a connection to the database server
> $connection = pg_connect ("host=$local host dbname=$srproject
> user=$srproject password=$56364563");
This is surely wrong.
> $connection = pg_connect ("host=$host dbname=$dbuser=$user
password=$pass");
This looks reasonable except you need another space:
$connection = pg_connect ("host=$host dbname=$db user=$user
password=$pass");
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Trutwin | 2003-01-29 17:32:02 | Re: Good books? |
Previous Message | paul butler | 2003-01-29 16:32:58 | Re: Good books? |