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 td width='100'input name='descr' type='text' size='45'
maxlength='20' readonly value='.StripSlashes(mysql_result($badgedetails,
$i,
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
-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, I shouldn't have to use StripSlashes but would I still need to use
AddSlashes when inserting/updating? I
I would suggest you rather do the following ( over and above the
htmlentities as already suggested )
In stead of doing
echo html with single='quotes';
to rather
echo 'html with double=quotes';
The reason is; there is a difference between echo 'stuff' ; and echo
stuff;
The first (single
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
5 matches
Mail list logo