I have made an edit form for my users, now when I update it needs to be secure against MySQL injection.
Right now I have this query
$sqledit = mysql_query("UPDATE **** SET titel = '$title', content = '$content' WHERE `ID` = ".mysql_real_escape_string($_POST['ID']),mysql_real_escape_string($_POST['txttitle'])) or die (mysql_error());
NOTE: $content is an ckeditor with has build in protection methods against MySQL injection?
Still when I put something like: ééáá",''øøí in txttitle it gives the following error.
mysql_query(): supplied argument is not a valid MySQL-Link resource