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, 'descr'))."' tabindex='1'/></td>";

The problem is, if the value to be displayed is for example O'Neill, then
the output will look something like -

<td width='100'><input name='descr' type='text' size='45' maxlength='20'
readonly value='O'Neill' tabindex='1'/></td>

Quite correctly, when this page is rendered, all that will be displayed is O
as the apostrophe after the O will be treated as a closing parenthesis. I
understand AddSlashes and StripSlashes but how can I utilise them to resolve
this issue.


****************************************************
This e-mail is intended for the recipient only and
may contain confidential information. If you are
not the intended recipient then you should reply
to the sender and take no further ation based
upon the content of the message.
Internet e-mails are not necessarily secure and
CCM Limited does not accept any responsibility
for changes made to this message. 
Although checks have been made to ensure this
message and any attchments are free from viruses
the recipient should ensure that this is the case.
****************************************************

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to