Page 1 of 1

mysql real escape object error

Posted: Wed Nov 24, 2010 9:42 am
by hmmm
Edit: Fixed mysql_real_escape problem ;)

But why does my htmlentities do nothing??

E.g. Input returns same output :S.

Code: Select all

$string = "<b>B</b>";
$SD = $obj->CHECK($string);
echo $SD;

Code: Select all

 $okdata= htmlentities(trim($data));
 return $okdata;

outputs:<b>B</b>, strip_tags does the job, but as soon as anyone enters a <, all input is removed. So it is overkill :/
Edit2: When I change input to end in </html>. the code doesn't output :S.