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

Jon & Jane Montgomery vicepresident at comcast.net
Mon Nov 14 09:58:46 MST 2011


Steve,

Thank you for pointing that out.  I knew that was not fx.php that I posted,
but could not remember the correct fx.php syntax.  I apologize in that for
the past several years I have been forced to use a plug in so my limited
fx.php skills left me me and I am now trying to return to them and advance
them.  I almost did not post because of this, but then thought someone much
smarter than me would point it out and I would learn from it.

Thanks Steve!

Jon Montgomery


On 11/14/11 10:44 AM, "Steve Winter" <steve at bluecrocodile.co.nz> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20111114/65f83ee3/attachment.html


More information about the FX.php_List mailing list