[FX.php List] Search problems

Gjermund Gusland Thorsen ggt667 at gmail.com
Wed Jul 12 06:51:50 MDT 2006


= refers to content operator, eg exact match
eq is a comparison operator
cn = contains,
eq = equals( at least what is in the search criteria )
lge...
etc

On 7/12/06, Erik Andreas Cayré <erik at cayre.dk> wrote:
>
> Den 12/07/2006 kl. 6.50 skrev Kevin Futter:
>
> > $type = $_GET['type'];
> >
> > to
> >
> > $type = "=" . $_GET['type'];
> >
> > Works like a charm, though it feels really hacky. Not sure why it
> > works with prepending only one "=", but I'm not arguing at this
> > stage. I considered the "grab all records and let PHP sort 'em out"
> > approach, but was looking for something a little more direct.
>
> Looks to me like FX.php needs a little tweaking?
>
> I wonder why we get different results using
>
> $FMQuery->AddDBParam("Category", "=" . $type);
>
> instead of
>
> $FMQuery->AddDBParam("Category", $type, "eq");
>
> I always thought the 'eq' operator was meant to give an exact match...
>
> ---
> Erik Andreas Cayré
> Spangsbjerg Møllevej 169
> DK-6705 Esbjerg Ø
>
> Home Tel: +45 75150512
> Mobile: +45 40161183
>
>
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
>
>


More information about the FX.php_List mailing list