Mysql_real_escpae_string ilgili ilginç bir konu

0 Cevap

I have simple form for editting site content: - a text input for title - a textarea for content

Içerik eklerken, hiçbir sorun yok, Allthings normalde ekleyin:

$chead      = mysql_real_escape_string(stripslashes($_POST['chead']));
$ctext      = mysql_real_escape_string(stripslashes($_POST['ctext']));

Fakat madde içeren ürünlerin edittig zaman

$chead = 'sdsfsf' "sdgsdgs"ggdsfsdg

The $chead = 'sdsfsf' and the "sdgsdgs"ggdsfsdg will be lost!!! What is the problem with mysql_real_escpae_string? Thanks

0 Cevap