Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Inserting user inputted data with apostrophe's.

$
0
0
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.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>