Finaly I figured out how to get it working; in my php mapscript file I added the next code:<br><br><div style="margin-left: 40px;"><span style="font-style: italic;">if ($_GET[&#39;mode&#39;] == &#39;itemquerymap&#39;) {</span>
<br style="font-style: italic;"><span style="font-style: italic;"><span style="font-style: italic;">&nbsp;</span>$qstring = explode(&quot;=&quot;,$_GET[&#39;qstring&#39;]);</span><br style="font-style: italic;"><span style="font-style: italic;">
&nbsp;$map-&gt;getLayerByName($_GET[&#39;qlayer&#39;])-&gt;queryByAttributes($qstring[0],str_replace(&quot;\\&quot;,&quot;&quot;,$_GET[&#39;qstring&#39;]),MS_SINGLE);<br>&nbsp; // I remove the \ characters of the qstring<br style="font-style: italic;">
</span><span style="font-style: italic;">}</span><br></div><br>And at the end of my file:<br><br><div style="margin-left: 40px;"><span style="font-style: italic;">if ($_GET[&#39;mode&#39;] == &#39;itemquerymap&#39;) {</span>
<br style="font-style: italic;"><span style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp; </span>$image=$map-&gt;drawQuery();</span><br style="font-style: italic;"><span style="font-style: italic;">} else {</span>
<br style="font-style: italic;"><span style="font-style: italic;"><span style="font-style: italic;">&nbsp;&nbsp; </span>$image=$map-&gt;draw();</span><br style="font-style: italic;"><span style="font-style: italic;">}<span style="font-style: italic;">
<br></span></span></div><br>So if the mode is itemquerymap I draw the query; otherwise I make a normal draw. <br><br>Rodrigo.<br><span style="font-style: italic;"><span style="font-style: italic;"></span></span><br><span style="font-style: italic;">
<span style="font-style: italic;"></span></span><div style="margin-left: 40px;"><span style="font-style: italic;"><span style="font-style: italic;"></span></span></div><div><span class="gmail_quote">On 8/3/07, <b class="gmail_sendername">
Rodrigo Martín LÓPEZ GREGORIO</b> &lt;<a href="mailto:rodrigomlg@gmail.com">rodrigomlg@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi List.<br><br>Normally I use mapserver as CGI, but now I need to move to PHP/mapscript. In my actual applet I use the CGI mode=itemquerymap to show the selected polygon on a layer with different color. So I pass the next values on the CGI call:
<br><br>mode=itemquerymap&amp;qlayer=mylayer&amp;qstring=someattribute=&#39;avalue&#39;<br><br>This works greats through CGI. Now I want to get the same effect using PHP Mapscript but I&#39;m a little confused how to get it working. I know how to get the string parameters in php, even split the qstring parameter using explode but what I don&#39;t know is what must I do to get PHP Mapscript use the QUERYMAP format (defined in my base mapfile) to show the selected polygon.
<br><br>Can anyone give me a hint?<br><br>Thanks.<br><span class="sg"><br>Rodrigo.<br>
</span></blockquote></div><br>