<?php
/*
*To change this license header, choose License Headers in Project Properties.
*To change this template file, choose Tools | Templates
*and open the template in the editor.
*/
require("db_conn.php"); //包含连接文件
$sql="SELECT * FROM 'tb_ad'where isshow=1 order by id desc limit 0,5"; //写查询语句 isshow=1 取五个
$adrs=$db->query($sql); //执行语句 $rs是一个结果集
$adrows=$adrs->fetch_all(MYSQLI_BOTH); //包括所有行 $adrows有数据库的焦点广告 这一行怎么定义?这一行有错误吗?麻烦各位大神教教我?
require 'index_html.php';
//释放结果集$result->free();//关闭数据库$db->close();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货