<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello Mapserver users<br><br>I'm using a structure to fetch all registers associated to a shape. But the fuction returns $numResults times the same record, as shown in the example:<br><br><br>John&nbsp; =&gt; House02<br>Mary&nbsp; =&gt; House02<br>Peter =&gt; House02<br><br>The fuction returns:<br>John&nbsp; =&gt; House02<br>John&nbsp; =&gt; House02<br>John&nbsp; =&gt; House02<br><br>Using the PHP/Mapscript:<br>************ ********* ********* ***<br>for ($i = 0; $i &lt; $numResults; $i++) {<br>&nbsp;&nbsp;&nbsp; $result = $msLayer-&gt;getResult($i) ;<br>&nbsp;&nbsp;&nbsp; $shape = $msLayer-&gt;getShape($result-&gt;tileindex, $result-&gt;shapeindex);<br><br>&nbsp;&nbsp;&nbsp; $results[] = $shape;<br>}<br>************ ********* ********* ***<br><br>Can anyone help me? I'm using
 Postgres/Postgis to store the information and Mapserver 4.10 and PHP 5.2.1<br><br>Regards, Rodrigo Gaete.<br><br></div></div><br>


      Flickr agora em português. Você clica, todo mundo vê. <a href="http://br.rd.yahoo.com/mail/taglines/flickr/*http://www.flickr.com.br/">Saiba mais</a>.
</body></html>