I made a quick search and the result was not positives, so i am asking this,
1. Can some one please guide me how to secure password in database?
2. I have this code
Code: Select all
mysql_query("INSERT INTO userdata (name, email, activationpassword, password, validation, banned)
VALUES ($name, $email , $activationNumber, $password, 'no', 'no')");Is it possible in this way?
Code: Select all
$mysqlCommand = "INSERT INTO userdata (name, email, activationpassword, password, validation, banned)
VALUES ($name, $email , $activationNumber, $password, 'no', 'no')";
if (!mysql_query($mysqlCommand)){
// some thing
}else{
//some thing
}