[postgis-users] Db connect

Nicolas Ribot nicolas.ribot at gmail.com
Thu Mar 4 01:01:59 PST 2010


> With them in place..
> ERROR received
> Parse error: syntax error, unexpected '=' in C:\OSGeo4W\apache\htdocs\lu.php on line 2
>

Hi,

$db_handle = pg_connect(”host = localhost port = 5432
 dbname = postgis user = postgres password = GrassJump”);

Put this on one line, not two.
Escape your '\' chars: c:\\OSGeo4W\\...

Nico



More information about the postgis-users mailing list