The first contact with this check for a long time will not =-solve
!--? php
session_start ();
Class chkuserlogin{
private $username;
Private $password;
Public Function __construct ($username, $password) {
$this->username= $username;
$this->password= $password;
require_once ("connn.php");
$sql =mysql_query ("Select account from root where username= '". $this->username. "' and password= '". $this->password . "'", $conn);
$info =mysql_fetch_array ($sql);
if ($info ==false) {
echo "";
Exit
}else{
if ($_session["UNC"]!= "") {
Session_unregister ("UNC");
}
Session_register ("UNC");
$_session["UNC"]= $this->username;
mysql_query ("Update root set Logintimes=logintimes+1,lastlogintime=". Date ("Y-m-d h:i:s"). "'", $conn);
echo "";
}
}
}
$obj =new chkuserlogin ($_post["username"],md5 ($_post["password"]);
$obj->chk ();
?
A small piece of code for login verification My database has no password for localhost root, my database has saved a set of passwords. Unlimited password error jump page and also errors
=-Free Humbly
------to solve the idea----------------------
How did you execute this program?
------to solve the idea----------------------
References:
Administrator br>
!--/login-content-->
!--/login-wrapper-->
!--Le javascript
==================================================-->
!--Placed at the end of the Docum ent so the pages load faster-->
=-Use this page
Your username and password have not been submitted in the past.
The red box is added separately
Name= "username"
Name= "Password"
Try again.