I used mysql escape string in my code. I was taking e-mail addresses and storing them in the database. This is the escape-string function I used.
mysqli_real_escape_string($connection, $_POST['data'])
But I looked at the database today and found that someone has been able to insert things like "C:/Windows/xyz", SQL queries etc. Those have been included in the database. How is this happening, even when the HTML doesn't let you enter anything except a proper email address?