Possible Duplicate:
How to prevent SQL injection?
I need to know what is the best way to stop SQL injection in a php website.? Also i have a problem. When i fire any query which contains the data having ' or ", the query does not execeute its funcioning. Whats the reason for this and whatr could be the possible solution? Also i need to know what is MD5 and how can i use it my code for storing data. Also, is it possible to revert back the MD5 text to original text??
How can i use MD5 hash to store password in php. and how to use them later on as from what i have heard , it is not possible to revert back the MD5.