[FX.php List] Displaying & Updating comments

AC ac at pottnerconsulting.ca
Fri Jul 21 20:10:59 MDT 2006


Thanks for the suggestion, I believe I was causing the problem because 
I was replacing certain characters.  The following seems to work well 
for me;
echo( str_replace("\n", "<BR>", htmlentities( $ResultOne['Comment'][0] 
) ) );


On Jul 21, 2006, at 4:36 PM, Erik Andreas Cayré wrote:

>
> Den 18/07/2006 kl. 19.29 skrev AC:
>
>> If the user types
>> a'a"a\a
>> into the comment field, then the database will contain the text
>> a\'a\"a\\a
>
> When I started with FX.php, I had some problems which were similar to 
> the ones you describe here.
>
> After a while I got a suggestion to use UTF-8 in my web page, and all 
> trouble just *disappeared*
> I didn't have to do any conversion at all between user input and 
> database contents...
>
> I'm not certain this pertains to you but it's worth a try?
>
> Like this:
>
> 	<meta http-equiv="content-type" content="text/html; charset=utf-8">
>
>
> ---
> Erik Andreas Cayré
> Spangsbjerg Møllevej 169
> DK-6705 Esbjerg Ø
>
> Home Tel: +45 75150512
> Mobile: +45 40161183
>
>
> _______________________________________________
> 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