I am having issues whenever I put a ' in text on a page that updates the database,
$query = "UPDATE news SET news1_title='$news1_title', news1_info='$news1_info', news1_body='$news1_body', news2_title='$news1_title', news2_info='$news2_info', news2_body='$news2_body' WHERE id=1";
As it cuts off and ends up throwing the text into the code.
Is there a way that I can add things like this safely, I know I can use ' but then when it shows it back in the page it returns as ' and I have to update them every time to ' otherwise it errors.
Thanks.