[OSGeo-Discuss] Db connect

Tyler Mitchell (OSGeo) tmitchell at osgeo.org
Tue Mar 2 19:26:45 PST 2010


Hi Ravi, what kind of error are you getting?

Tyler
Ravi wrote:
> Hi,
> am using OSGeo4W bundle and the apache and php there in.
> Apache installed OK showing as aservice and in the browser
> http:\\localhost
> issues the OSGeo4w welcome screen and phpthere on
> 
> with the following wish to connect to PGSQL 8.4 and postGIS there in
> with the following. But it doesnt work. Where am I going wrong ?
> 
> $db_handle = pg_connect(”host = localhost port = 5432 dbname = postgis user = postgres password = GrassJump”); $query = “SELECT * FROM rjybound”; $result = pgexec($dbhandle, $query);
> 
> Ravi Kumar
> 
> 
>       Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/
> 
> _______________________________________________
> Discuss mailing list
> Discuss at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/discuss




More information about the Discuss mailing list