[postgis-users] PHP & PostGIS.

Eric Sepich sepotovich at gmail.com
Sun Jun 26 21:28:52 PDT 2011


<?php
$dbconn = pg_connect("host=localhost port=5432 dbname=postgismethane
user=root password=excedrin413");

$query = "SELECT * FROM polygons WHERE gid = 1";
$result = pg_exec($dbconn, $query);
if (!$result) {printf ("ERROR"); exit;}
$numrows = pg_numrows($result);
?>

I get one row returned but I just don't seem to have any kind of
documentation on what to do with it. I want to list the coordinates of the
polygon returned by my query. Does anyone know how to do that?

Thank you,
Eric S.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110626/aac88a8d/attachment.html>


More information about the postgis-users mailing list