I am creating a messaging system but the problem I face is that when users try and enter certain characters like ‘ into the message, the database doesnt want to allow it.
Any idea what this is?
I am creating a messaging system but the problem I face is that when
Share
This is called SQL injection. Basically, by not handling your user input properly, you’re allowing anyone and everyone to execute arbitrary SQL statements (not good!). If you search for ‘SQL Injection’, you’ll get tonnes of resources.
For starters, have a look at this question: How can I prevent SQL injection in PHP?