An interesting issue about mysql_real_escpae_string
Posted
by phpExe
on Stack Overflow
See other posts from Stack Overflow
or by phpExe
Published on 2010-06-16T20:34:50Z
Indexed on
2010/06/17
11:03 UTC
Read the original article
Hit count: 142
php
I have simple form for editting site content: - a text input for title - a textarea for content
When adding content, there is no problem, allthings add normally:
$chead = mysql_real_escape_string(stripslashes($_POST['chead']));
$ctext = mysql_real_escape_string(stripslashes($_POST['ctext']));
But when edittig the article that containig the
$chead = 'sdsfsf' "sdgsdgs"ggdsfsdg
The $chead = 'sdsfsf'
and the "sdgsdgs"ggdsfsdg
will be lost!!!
What is the problem with mysql_real_escpae_string
?
Thanks
© Stack Overflow or respective owner