<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
How can I get values when I make a query in PHP/MapScript on a PostGIS
layer ?<br>
<br>
Examples :<br>
<u>layer's properties :</u><br>
CONNECTION "user=user password=pass dbname=postgis host=localhost
port=5432"<br>
CONNECTIONTYPE POSTGIS<br>
DATA "the_geom from adres"<br>
<br>
<u>part of the script :</u><br>
if(($num_results=$layer->getNumResults())>0) {<br>
$layer->open();<br>
for($j=0;$j<$num_results;$j++) {<br>
$result=$layer->getResult($j);<br>
$shape=$layer->getShape($result->tileindex,$result->shapeindex);<br>
foreach($shape->values AS $field=>$value) {<br>
echo "$field=>$value<br>\n";<br>
}<br>
}<br>
$layer->close();<br>
<br>
thanks<br>
</body>
</html>