I have a database in which i store articles that contain all type of special characters including slashes, single quotes, double quote etc.
Previously it was working fine, but now after the updating the xampp, things are not going as usual.
I insert are articles using following code
$query = "INSERT INTO `articles` (`source`, `heading`, `description`, `catagory`, `detail`, `date`, `timestamp`)
values ('$source', '$heading', '$desc', '$catagory', '$detail', '$date', '$timestamp')";
Error I am getting is
Error Running query 1You 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 economy and emphasized that international community should provide its complet' at line 2
Can anybody tell me whats wrong with my script?