Ok, so what is the secure way to input data into a mysql database? I have been googling for a while now, and have come with many different results, and many pages saying "do not use what this page says!". Many sources simply say to use mysql_real_escape_string on all values going into the database, but others claim that is horrible. Then some say to use that in conjuction with addlslashes or something and others still say that those are all insecure.
I am trying to store things like forum posts, and so I can't use the simple method of removing all non abc or 123 characters.
So if someone can provide me a simple function that i can use to clean strings, and then another (if necessary) to retrieve them, that would be amazing!
Very confused 😕,
Labmonkey