query($sql); //执行sql语句$num_results">
时间:2021-07-01 10:21:17 帮助过:3人阅读
$sql = "";
$result = $db->query($sql); //执行sql语句
$num_results = $result->unm_rows; //返回行数
$row = $result->fetch_row($result); //取出一行数据 或用
$row = $result->object(); //将一行数据返回到一个对象里 例如 $row->titlehttp://www.bkjia.com/PHPjc/486232.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/486232.htmlTechArticle@ $db = new mysqli_connect(主机,用户名,密码,数据库名); //连接数据库 $sql = ""; $result = $db-query($sql); //执行sql语句 $num_results = $result-unm_rows; //返回行...