John,
Thank you. This solves the problem.
Petre,
Thank you for your reply. I wasn't aware of the difference and will bear
this in mind.
This e-mail is intended for the recipient only and
may contain confidential information. If you are
not
I would suggest you rather do the following ( over and above the
htmlentities as already suggested )
In stead of doing
echo " ";
to rather
echo '';
The reason is; there is a difference between echo 'stuff' ; and echo
"stuff";
The first (single quotes) is treated as literal content, ie, PHP jus
Holmes'" <[EMAIL PROTECTED]>
Cc: "Php (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, August 02, 2002 6:37 AM
Subject: RE: [PHP] StripSlashes Problem
> John,
>
> Thank you for your reply. My magic_quotes_runtime is set to 'Off'. As you
> said,
John,
Thank you for your reply. My magic_quotes_runtime is set to 'Off'. As you
said, I shouldn't have to use StripSlashes but would I still need to use
AddSlashes when inserting/updating? I can see the slashes in the database
when I look at the tables but I am fairly sure that I do not add slash
> I use the following php code to build a dynamic table retrieving values
from
> a MySQL databases that have been inserted with slashes added -
>
> echo " maxlength='20' readonly value='".StripSlashes(mysql_result($badgedetails,
> $i, 'descr'))."' tabindex='1'/>";
>
> The problem is, if the v
I use the following php code to build a dynamic table retrieving values from
a MySQL databases that have been inserted with slashes added -
echo "";
The problem is, if the value to be displayed is for example O'Neill, then
the output will look something like -
Quite correctly, when this
6 matches
Mail list logo