4 Star 2 Fork 2

sunbingzibo / phpok3w

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php.bak 756 Bytes
一键复制 编辑 原始数据 按行查看 历史
sunbingzibo 提交于 2014-07-24 08:32 . 重命名index.php
<?php
header("Content-Type:text/html;charset=utf-8");
require("Appcode/conn.php");
$query="select * from ok3w_class";
$result=$mysqli->query($query);
if ($result) {
if($result->num_rows>0){ //判断结果集中行的数目是否大于0
while($row =$result->fetch_array() ){ //循环输出结果集中的记录
echo ($row[0])."<br>";
echo ($row[1])."<br>";
echo ($row[2])."<br>";
echo ($row[3])."<br>";
echo "<hr>";
}
}
}else {
echo "查询失败";
}
$result->free();
$mysqli->close();
?>
PHP
1
https://gitee.com/9786/phpok3w.git
git@gitee.com:9786/phpok3w.git
9786
phpok3w
phpok3w
master

搜索帮助