Quite simply, the 'texarea' on my website is like texting, it allows users to enter text and it's posted onto the page. I just found out that it treats the text as some sort of code, maybe SQL.
When I typed in "Hello we're all fine", the apostrophe in the word "we're" had caused some confusion.
The error message displayed in the browser:
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 're all set')' at line 1
Just in case you're wondering, here's the html :
<form action="comi.php" method="post">
<textarea maxlength="227" type="text" name="input" cols="45" rows="4"></textarea>
<input type="submit" value="POST" id="button" />
</form>
I thought that it may have something to do with the database, can anyone help?
Thanks in advance :)