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['mode'] == 'itemquerymap') {</span>
<br style="font-style: italic;"><span style="font-style: italic;"><span style="font-style: italic;"> </span>$qstring = explode("=",$_GET['qstring']);</span><br style="font-style: italic;"><span style="font-style: italic;">
 $map->getLayerByName($_GET['qlayer'])->queryByAttributes($qstring[0],str_replace("\\","",$_GET['qstring']),MS_SINGLE);<br>  // 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['mode'] == 'itemquerymap') {</span>
<br style="font-style: italic;"><span style="font-style: italic;"><span style="font-style: italic;">   </span>$image=$map->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;">   </span>$image=$map->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> <<a href="mailto:rodrigomlg@gmail.com">rodrigomlg@gmail.com</a>> 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&qlayer=mylayer&qstring=someattribute='avalue'<br><br>This works greats through CGI. Now I want to get the same effect using PHP Mapscript but I'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'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>