PHP头条
热点:

php用户登录面向对象类


登录类  用语开发过程中的方便性  类直接体现出来了 ,如果可以 我们可以建自己的一个类库 方便的时候 直接拿来用  提供编程效率

class chk{
private $name;
private $pwd;
public function __construct($x,$y){
$this->name=$x;
$this->pwd = $y;

}
public function chkuer(){
include 'conn/conn.php';
$rs = new com("adobd.recordset");
$rs ->open("select * from tb_user where username = ".$this->name."and userpwd = ".$this->pwd."",$conn,3,1);
if ($rs->eof||$rs->bof){
echo "cuowu";
}else {
echo "dengluchenggong";
}
}

}
?>

www.phpzy.comtrue/phpkj/9837.htmlTechArticlephp用户登录面向对象类 登录类 用语开发过程中的方便性 类直接体现出来了 ,如果可以 我们可以建自己的一个类库 方便的时候 直接拿来用 提供编程效率 class chk{ private $name; private $p...

相关文章

相关频道:

PHP之友评论

今天推荐