$query = "INSERT INTO `articles` (`aid` ,`title` ,`writtenby` ,`category` ,`section` ,`date` ,`image1` ,`content` ,`subtitle`) VALUES ('', '$title', '$author', '$category', '$section', '$date', '".$image['name']."', '$content', '$subtitle')";
The problem is whenever i enter content in either "title, content or subtitle"
that contains an apostrophe (') it returns an error.. but if i enter content without any it works fine... is there anyway to fix this, or do i have to enter stuff without apostrophes??
I get this "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"
This post has been edited by johnd07: 03 January 2010 - 08:11 PM