从前blog移植过来,暂无摘要,后期再补
$db = new mysqli(“localhost”, “user”, “pass”, “database”);
$stmt = $mysqli -> prepare(“SELECT priv FROM testUsers WHERE username=? AND password=?”);
$stmt -> bind_param(“ss”, $user, $pass);
$stmt -> execute();
以这个为基础,封装成类
从前blog移植过来,暂无摘要,后期再补
$db = new mysqli(“localhost”, “user”, “pass”, “database”);
$stmt = $mysqli -> prepare(“SELECT priv FROM testUsers WHERE username=? AND password=?”);
$stmt -> bind_param(“ss”, $user, $pass);
$stmt -> execute();
以这个为基础,封装成类