When to use prepared statements?
问题 I have few question. Spec: MySql database; server side language PHP 5.3.10 1) When should one use prepared statements? I am building a webapp which has users. I am retrieving/inserting data into the database constantly. I am currently not using prepared statements and I was wondering if that was wrong way of doing things? /** * Register a new user into the database. Please make sure to * hash the password. * @param type $fName First name of the user - String value. * @param type $lName Last