<!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> </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> </DIV>
<DIV><FONT face=Arial size=2>When i try to do the same using a line layer,
mapserver return me the whole lines of the layer instead of only the
selected ones.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> $oLayer =
$oMapSession->oMap->getLayerByName( 'listvoies' ); // (listvoies with
template "something")<BR> $dblquery = "([CODE_VOIE] =
".$_SESSION["index"].")"; //CODE_VOIE is integer<BR> $fieldname=
"CODE_VOIE";<BR> if (@$oLayer->queryByAttributes($fieldname, $dblquery,
MS_MULTIPLE) ==
MS_SUCCESS)<BR> {<BR> $oLayer->open();<BR> $nbrep=$oLayer->getNumResults();<BR> echo
$nbrep; //return 1200 that's to say the whole
file<BR> }//if<BR> 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> </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> </DIV></BODY></HTML>