[FX.php List] Sending carriage returns within a string into FM field

Anders Monsen andersm at mac.com
Wed Mar 2 13:44:35 MST 2011


I believe you need to wrap double quotes around a \r

$values = $merchandise . "\r" . $taxexempt;

$create->AddDBParam('item_type', $values );


Anders Monsen



On Mar 2, 2011, at 2:38 PM, Bob Patin wrote:

> 
> 
> Begin forwarded message:
> 
> From: Bob Patin <bob at patin.com>
> Date: March 2, 2011 2:37:01 PM CST
> To: "FX.php Discussion List" <fx.php_list at mail.iviking.org>
> Subject: Re: [FX.php List] Sending carriage returns within a string into FM field
> 
> Nope, didn't work; I got
> 
> merchandise\rtaxexempt
> 
> which is the same as what I get when I use both. I could've sworn it was \r\n, but that doesn't work either.
> 
> My last little thing to get before i turn this loose on testers... argh...
> 
> Bob Patin
> 
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> iChat: bobpatin
> FileMaker 9, 10 & 11 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --
> Expert FileMaker Consulting 
> FileMaker Hosting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting
> 
> 
> 
> 
> On Mar 2, 2011, at 2:28 PM, Tim 'Webko' Booth wrote:
> 
> Ithink FM only wants the \r from memory
> 
> Tim 'Webko' Booth
> [m] 0418 993 306
> 
> On 03/03/2011, at 7:01 AM, Bob Patin <bob at patin.com> wrote:
> 
>> I know this, but nothing I'm doing is working; 
>> 
>> I want to send this into a single FM field:
>> 
>> merchandise
>> taxexempt
>> 
>> I tried using this 
>> 
>> $create->AddDBParam('item_type','merchandise\r\ntaxexempt');
>> 
>> which I *thought* would send the carriage return; can someone refresh my memory?
>> 
>> Last little nagging glitch in a long project...
>> 
>> Thanks,
>> 
>> Bob Patin
>> Longterm Solutions
>> bob at longtermsolutions.com
>> 615-333-6858
>> http://www.longtermsolutions.com
>> iChat: bobpatin
>> FileMaker 9, 10 & 11 Certified Developer
>> Member of FileMaker Business Alliance and FileMaker TechNet
>> --
>> Expert FileMaker Consulting 
>> FileMaker Hosting for all versions of FileMaker
>> PHP • Full email services • Free DNS hosting • Colocation • Consulting:
>> 
>> _______________________________________________
>> 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

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


More information about the FX.php_List mailing list