[FX.php List] How do I specify an "Exactly Equal To" search?

BEVERLY VOTH beverlyvoth at gmail.com
Mon Nov 14 10:21:22 MST 2011


Steve is correct. It's an "exact" comparison that is passed to FileMaker.
Beverly

On 14 Nov 2011, at 11:44 AM, Steve Winter wrote:

> Although the reference below to the PHP operators is correct, it's actually irrelevant to Malcolm's question (as FileMaker doesn't know what === means…. ;-)
> 
> Jon's original answer is quite correct because this isn't a PHP comparison which is being run but an FMP one… you can use any/all of the 'usual' FMP comparison operators by prepending them (almost) as Jon showed. The correct syntax for fx.php is
> 
> 	$find->AddDBParam('_kf_userID',"==".$userID);
> 
> Which is the same as performing the == find in FM client…
> 
> Cheers
> Steve
> 
>> Or just <http://php.net> and search for 'comparison operators'. Lot's of lovely information on the entire site. I tend to download the PHP manual (for off internet research) and then I always have it. Great reading & if you include the comments, you get some more helpful examples. Periodically update the download for the latest changes.
>> 
>> Beverly
>> 
>> 
>> On 14 Nov 2011, at 11:12 AM, Jon Montgomery wrote:
>> 
>>> Malcolm,
>>> 
>>> She is referring to this:
>>> 
>>> http://us2.php.net/manual/en/language.operators.comparison.php
>>> 
>>> Jon Montgomery
>>> 
>>> On Nov 14, 2011, at 10:08 AM, Beverly Voth wrote:
>>> 
>>>> Check your PHP manual for comparison operators. "==" is equal, but "===" is identical. sometimes you need to be identical, not merely equal. :)
>>>> 
>>>> -- sent from my iPhone4 --
>>>> Beverly Voth
>>>> --
>>>> 
>>>> On Nov 14, 2011, at 11:04 AM, Jon Montgomery <fxphp at igsmasouth.org> wrote:
>>>> 
>>>>> Malcolm,
>>>>> 
>>>>> I think it is the same way:
>>>>> 
>>>>> $found_records_findCriterions = array('_kf_school_id'=>'=='.fmsEscape($_SESSION['_kf_school_id']),);
>>>>> 
>>>>> Jon Montgomery
>>>>> 
>>>>> 
>>>>> On Nov 10, 2011, at 7:39 PM, Malcolm Fitzgerald wrote:
>>>>> 
>>>>>> In filemaker we can use "==" to say search for values which are exactly equal to X. How can we do this with fx.php?
>>>>>> 
>>>>>> Malcolm_______________________________________________
>>>>>> FX.php_List mailing list
>>>>>> FX.php_List at mail.iviking.org
>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>>>> 
>>>>> _______________________________________________
>>>>> FX.php_List mailing list
>>>>> FX.php_List at mail.iviking.org
>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>>> _______________________________________________
>>>> FX.php_List mailing list
>>>> FX.php_List at mail.iviking.org
>>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>> 
>>> _______________________________________________
>>> FX.php_List mailing list
>>> FX.php_List at mail.iviking.org
>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>> 
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
> 
> Steve Winter
> +44 777 852 4776
> steve at bluecrocodile.co.nz
> 
> 
> 
> _______________________________________________
> 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