无标题文档 登录界面
用户名:密码:用户名:
使用Jquery必须在页面内引入一个Jquery包
query($sql); $row = $result->fetch_row(); if($row[0]==0) { echo "用户名或密码错误"; } else { echo "OK"; }}*/$uid = $_POST["uid"];$db = new mydbda();$sql = "select count(*) from login where UserName='".$uid."'";$str = $db->Select($sql,"CX","mydb");echo $str;?>
host,$this->username,$this->password,$data); //2.判断是否连接成功 if(mysqli_connect_error()) { echo "连接失败"; //退出整个程序 exit; } else { //4.执行SQL语句 $result = $db->query($sql); if($type == "CX") { $str = ""; while($row = $result->fetch_row()) { for($i=0;$i