[OSGeo-Discuss] Db connect

Ricky Jacob jacob.ricky at gmail.com
Wed Mar 3 04:41:17 PST 2010


Hi,

In this line:
$query = “SELECT * FROM rjybound”;

Add a ';' to it like this.

$query = “SELECT * FROM rjybound*;*”;

Guess it should work.

Ricky

On Wed, Mar 3, 2010 at 12:31 PM, Ravi <ravivundavalli at yahoo.com> wrote:

> Hi,
> even when $dbhandle is changed to $db_handle
> gives error
> Parse error: syntax error, unexpected '=' in
> C:\OSGeo4W\apache\htdocs\lu.php on line 2
>
> Is using Vista Home is an issue
>
> Ravi Kumar
>
> --- On Wed, 3/3/10, Robert Hollingsworth <reh2 at prodigy.net> wrote:
>
> > From: Robert Hollingsworth <reh2 at prodigy.net>
> > Subject: Re: [OSGeo-Discuss] Db connect
> > To: "OSGeo Discussions" <discuss at lists.osgeo.org>
> > Date: Wednesday, 3 March, 2010, 12:51 PM
> > is the
> > missing '_' in $dbhandle below significant?
> > REH
> >
> >
> > Hi,
> > am trying to learn rendering maps using
> > browser(shapefiles)
> >
> > no error is given from the browser, but it just displays
> >
> > $db_handle =
> > pg_connect(”host = localhost port = 5432 dbname = postgis
> > user = postgres password = GrassJump”); $query = “SELECT
> > * FROM rjybound”; $result = pgexec($dbhandle,
> > $query);
> >
> >
> >
> > -----Inline Attachment Follows-----
> >
> > _______________________________________________
> > Discuss mailing list
> > Discuss at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/discuss
> >
>
>
>      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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/discuss/attachments/20100303/d3816ec8/attachment-0002.html>


More information about the Discuss mailing list