Welcome to WebmasterWorld Guest from 126.96.36.199
INSERT INTO `rss_data` (`newsurlid`,`newstitle`) VALUES ('95','Special Ghana site for President Obama's visit')You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's visit')' at line 1
I am getting error because of single quotes; how to solve this and replace the single quotes?
NomikOS's proposed solutions are incorrect. The first, if it works at all, only works by accident. The second makes an assumption which may not always be true. Neither will fully protect you.
mysql_real_escape_string [us.php.net] will also work, but it's far too easy to forget or mess up, which is why I suggest using prepared statements.