queryByAttributes returns 0 every time

Ryan Ollerenshaw ryanollerenshaw at GMAIL.COM
Sat Nov 3 23:35:13 EDT 2007


On 11/3/07, Stephen Woodbridge <woodbri at swoodbridge.com> wrote:
> Ryan Ollerenshaw wrote:
> > I cant seem to get queryByAttributes to work correctly, I always get 0
> > results every time, here is the php code that i am using:
> >
> > $queryString = "(TEAM_ID > 1)";
> > $mroLayer->queryByAttributes('TEAM_ID',$queryString, MS_SINGLE);
> > echo "RESULTS: ".$mroLayer->getNumResults()
> >
> > I have also tried:
> > $queryString = "(TEAM_ID > '1')";
> > $queryString = "('TEAM_ID' > '1')";
> > $queryString = "('[TEAM_ID]' > 1)";
> >
> > Nothing seems to work, I am using php 5.4.1 and mapserver 4.10.1
>
> Try:  $queryString = "([TEAM_ID] > 1)";
>
> -Steve W
>

$queryString = "([TEAM_ID] > 1)";
$queryString = "[TEAM_ID] > 1";
$queryString = "('[TEAM_ID]' > 1)";
$queryString = "'[TEAM_ID]' > 1";

Still no good.



More information about the mapserver-users mailing list