This is properly going to be a really simple question but my head is spinning.
I am using php in a web service. One item that i receive is a string which i save into an sql database.
Issue is the strings must be able to contain ' but when i construct a query like the following
$query = "INSERT INTO TABLE (COLUMN1) VALUES ('{$_POST('string')}')";
it throws sql query error if ' is used.
Any solutions
Thanks