Jump to content

Login Scripts


Zoud

Recommended Posts

[code]
<?
session_start();
$password=md5($_POST[password]);
$result=mysql_query("SELECT * FROM users WHERE `$username`='$_POST[username]' AND `password`='$password' LIMIT 1");
$row=mysql_fetch_array($result);
if(!empty($row)){
$_SESSION[user]=$row;
header();#go back to homepage
}else{
header();#go back to login
}
unset($password);
?>
[/code]
Link to comment
https://forums.phpfreaks.com/topic/34425-login-scripts/#findComment-162057
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.