How to insert and select into/fr database in sha1 md5 format?

Hi there,
I have a very simple question : how to insert the password using sha1(md5) format into db and how to select it fr data.

registration.php:

$email=$_POST['email'];
$password=$_POST['password'];

"INSERT INTO `users` VALUES ('$email', $password)";
Code (markup):
login.php:


$email=$_POST['email'];
$password  = $_POST['password'];

"SELECT * FROM `users` WHERE `email`='" . $email . "' AND `password`='" . $password . "';
Code (markup):
Thanks for help,
Hanna

from PHP http://ift.tt/1SznuKt
via IFTTT
Previous
Next Post »
Thanks for your comment