[FX.php List] 'eq' isn't working

Bob Patin bob at patin.com
Thu Jul 19 14:55:19 MDT 2007


Use this:

$lookup->AddDBParam('Category','=='.$Category);

HTH,

Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com

   CONTACT US VIA INSTANT MESSAGING:
      AIM or iChat: longterm1954
      Yahoo: longterm_solutions
      MSN: tech at longtermsolutions.com
      ICQ: 159333060



On Jul 19, 2007, at 3:48 PM, Alex Gates wrote:

> Hi everyone –
>
> I’m in a bit of an urgent mess here –
>
>
>
> I realized that this:
>
>
>
> $lookup->AddDBParam('Category', '"'.$Category.'"', 'eq');
>
>
>
> Isn’t really doing what I intended.
>
>
>
> If I have 4 categories, for example:
>
>
>
> Meat
>
> Fruit
>
> Dessert
>
> Dessert Two
>
>
>
> This:
>
> $lookup->AddDBParam('Category', '"'.$Category.'"', 'eq');
>
> With $Category =Dessert
>
>
>
> Will bring up all Dessert but also Dessert Two
>
>
>
> Is there a syntax problem?  This works elsewhere on my site.
>
>
>
> Any ideas?
>
>
>
> This:
>
> $lookup->AddDBParam('Category', $Category, 'eq');
>
> Does the same thing.
>
>
>
> Alex
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> 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