Jump to content

Secured Password


dream25

Recommended Posts

for example... store md5('password'); into the database.. then for your login...

 

$user=$_POST[username]; #secure that
$pass=md5($_POST[password]);
$query=mysql_query("SELECT * FROM `users` WHERE `login`='$user' AND `pass`='$pass' LIMIT 1");

 

if $query pulls the row, your in, if not, redirect to login page

Link to comment
https://forums.phpfreaks.com/topic/54267-secured-password/#findComment-268305
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.