If I am using the following php to update the table:-
and if $_POST[hello] equals:-
it would create an error as follows:-
You can see there are too many ' in that query, how would I go about making the query work even if the ' is still there?
PHP:
$q = "UPDATE results SET hello = '$_POST[hello]' WHERE id = '1'";
and if $_POST[hello] equals:-
PHP:
hello i'm a cool dude
it would create an error as follows:-
PHP:
$q = "UPDATE results SET hello = 'hello i'm a cool dude' WHERE id = '1'";
You can see there are too many ' in that query, how would I go about making the query work even if the ' is still there?