I have this code for my insert:
$sql = "INSERT INTO hpt(date, headline, story) VALUES('$date', '$headline', '$story')";
When I try to insert a news story and use an apostrophe, ' , I get this error:
Error in query: INSERT INTO hpt(date, headline, story) VALUES('20061012 ', 'Test', 'TEastas'asfd'). 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 'asfd')' at line 1
How can I fix this?