[FX.php List] Search problems

Erik Andreas Cayré erik at cayre.dk
Wed Jul 12 00:25:28 MDT 2006


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1856 bytes
Desc: not available
Url : http://www.iviking.org/pipermail/fx.php_list/attachments/20060712/940edb6d/smime.bin


More information about the FX.php_List mailing list