public function denglu1(){
$username=$_POST['username'];
session_start();
$_SESSION['username']=$username;
$data = array(
username => $_POST['username'],
password => $_POST['password'],
);
$tiantian = M('User');
$list = $tiantian->query("select * from user where username='$username'");
if($list){
$this->success('登录成功',"__URL__/show");
}else{
$this->error('登录失败',"__URL__/denglu");
}
}
$username=$_POST['username'];
session_start();
$_SESSION['username']=$username;
$data = array(
username => $_POST['username'],
password => $_POST['password'],
);
$tiantian = M('User');
$list = $tiantian->query("select * from user where username='$username'");
if($list){
$this->success('登录成功',"__URL__/show");
}else{
$this->error('登录失败',"__URL__/denglu");
}
}