you also can't use mysql_real_escape_string() unless you have a valid mysql connection. you should probably just use addslashes() or create your own function to strip new line characters (\r and \n).
make sure you're concatenating strings correctly, too. in whatever example you posted, you weren't doing it correctly:
PHP Code://right:
$var = "some text" . function($var) . "concatenation";
//wrong (parse error):
$var = "some text" function(. $var) . "concatenation";




Reply With Quote