I have a form where I post a MySQL query. Which is processed further with PHP. My problem is, if the user types 'DROP DATABASE mydb', this will be a big problem. So, I would like to know if there is a way by which I can validate before posting the query so that the user does not harm any other database. We can use regular expressions for sure. But is there any other better way to do it?
Thank you
SELECTonly