<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello everybody,</FONT></DIV>
<DIV><FONT face=Arial size=2>i am getting problems with 
querybyattributes</FONT></DIV>
<DIV><FONT face=Arial size=2>I use a self-compiled php/mapscript 4.2.4 
(--with-regex=system) on a linux mandrake box.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Querybyattributes works fine using integer on a 
point type layer.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>When i try to do the same using a line layer, 
mapserver return me&nbsp;the whole&nbsp;lines of the layer instead of only the 
selected ones.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;$oLayer = 
$oMapSession-&gt;oMap-&gt;getLayerByName( 'listvoies' ); // (listvoies with 
template "something")<BR>&nbsp; $dblquery = "([CODE_VOIE] = 
".$_SESSION["index"].")";&nbsp; //CODE_VOIE is integer<BR>&nbsp; $fieldname= 
"CODE_VOIE";<BR>&nbsp;if (@$oLayer-&gt;queryByAttributes($fieldname, $dblquery, 
MS_MULTIPLE) == 
MS_SUCCESS)<BR>&nbsp;{<BR>&nbsp;$oLayer-&gt;open();<BR>&nbsp;$nbrep=$oLayer-&gt;getNumResults();<BR>&nbsp;echo 
$nbrep; //return 1200 that's to say the whole 
file<BR>&nbsp;}//if<BR>&nbsp;&nbsp;What is wrong?</FONT></DIV>
<DIV><FONT face=Arial size=2>i've tried many way to exprim $dblquery but i get 
still the same issue.</FONT></DIV>
<DIV><FONT face=Arial size=2>The same use of querybyattributes works fine when i 
use a point type layer...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Any help wil be appreciated.</FONT></DIV>
<DIV><FONT face=Arial size=2>thanks</FONT></DIV>
<DIV><FONT face=Arial size=2>fx</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>