[FX.php List] AddSortParam line shows 0 records
Joel Shapiro
jsfmp at earthlink.net
Thu Jan 12 13:42:38 MST 2012
FWIW: Both single & double quotes are valid for HTML attribute values:
http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2
I discovered this when I was writing a data URL in FMP. Since FMP
only allows double-quotes for strings, using single quotes for
attribute values meant I didn't need to escape the double-quotes
"<div id='abc'>content</div>" instead of
"<div id=\"abc\">content</div>"
-Joel
On Jan 12, 2012, at 10:29 AM, BEVERLY VOTH wrote:
> Yes, Bob, that's why I try to use single quote for all php
> "quoting", that way I can embed HTML (with double quotes) inside.
>
> But I wonder if it's an FX.php thing (needing to use the SQ not DQ)
> in the command, as the error he got was about command....
>
> Beverly
>
>
> On 12 Jan 2012, at 12:12 PM, Bob Patin wrote:
>
>> It won't matter; I've mixed and matched before and not had any
>> trouble.
>>
>> I'm trying to get in the habit of using single-quotes now; it
>> allows you to write things like
>>
>> $var = '<a href="mylink.htm">a link</a>';
>>
>> Because there are double-quotes inside the link, the singles are
>> necessary...
> _______________________________________________
> 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