Hello
if (isset($_GET['text'])) { $text = $_GET['text']; } else { $text = 0; } $text = mysql_real_escape_string($_REQUEST['$text']); echo $text;
To mysql_real_escape_string
data into the database, I decided to use the mysql_real_escape_string
function, which escapes special characters, but instead the data began to disappear. To check, I decided to write the code (specified above), if you remove the second line - everything works, with the second line nothing works.
Tell me what I did wrong?