I've made following protection for my variables:
$ad_title=htmlentities($ad_title);
$ad_title=mysql_real_escape_string($ad_title);
$ad_title=stripslashes($ad_title);
But every time I try to submit a string that contains the quote sign (') - everything after it is recognized as bad SQL query.
Can anyone please let me know what I missed?
I know mysql_real_escape_string should fix it but it doesn't.