i am building a new web site where users can rigister and post comments how can i secure my site from mysql injection and other security threats
For a start, use mysql_real_escape_string() on any user generated information that you will be using in an SQL query