Hi,
When a field is entered with a quote and stored on mySQL and redisplayed, a "/" is added and if I keep on redisplaying, more "/" get added. The text info is being stored on the file and the file information is displaying, so what would be happening in the syntax to cause that?
Thanks,
CdnRebel
/'s appearing on displaying info stored on mySQL
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Basically, you have magic quotes enabled, you should disable this in your php.ini or .htaccess file. You can also strip the slashes during your script's execution.
Code: Select all
if (get_magic_quotes_gpc()) {
$_POST = array_map('stripslashes', $_POST);
}slashes appearing when text with quotes is redisplayed
Thanks JCart,
I'll try other methods before posting again.
CdnRebel
I'll try other methods before posting again.
CdnRebel