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

Carl Anderson Carl.Anderson at asu.edu
Thu Jul 19 14:51:00 MDT 2007


I've run across the same problem.  What I have found works is:

$instanceName->AddDBParam($field, "=".$searchTerm, 'eq');

Note the inclusion of the concatenated equals sign before the search term
variable. 

Admittedly I haven't given this a go in some months, but it worked in some
limited testing.

-- 
Carl Anderson 
Technical Support Analyst
Distance Learning 
Herberger College of the Arts
Arizona State University
http://herbergeronline.asu.edu


> From: Alex Gates <alex at gandrpublishing.com>
> Reply-To: "FX.php Discussion List" <fx.php_list at mail.iviking.org>
> Date: Thu, 19 Jul 2007 15:48:54 -0500
> To: "'FX.php Discussion List'" <fx.php_list at mail.iviking.org>
> Subject: [FX.php List] 'eq' isn't working
> 
> 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