I'm trying to make a form where users can submit bugs that are then inserted into a MySQL database.
The problem is that anytime someone try's to use an apostrophe it will break the SQL statement inside the PHP and they recieve a SQL syntax error for the apostrophe and everything past it.
IE
User is saying:
I've attempted.
They will get You have an error in your SQL syntax.....
Check the right syntax to use near 've attempted at line 3.
The problem is that anytime someone try's to use an apostrophe it will break the SQL statement inside the PHP and they recieve a SQL syntax error for the apostrophe and everything past it.
IE
User is saying:
I've attempted.
They will get You have an error in your SQL syntax.....
Check the right syntax to use near 've attempted at line 3.