5 Star 11 Fork 9

xiaoz / mblog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
all.php 568 Bytes
一键复制 编辑 原始数据 按行查看 历史
xiaoz 提交于 2015-01-03 14:12 . M-Blog
<?php
session_start();
error_reporting(E_ALL^E_NOTICE^E_WARNING^E_DEPRECATED);
include_once('./config/smarty.config.php');
include_once('./config/config.php');
$con = $db->connect();
$sql = "SELECT * FROM `article` ORDER BY `id` DESC";
$query = $db->query($sql,$con);
$id = $_GET['delete'];
$d = "DELETE FROM `article` WHERE `id` = $id";
if(isset($_SESSION['account'])) {
$smarty->assign('edit',1);
}
while($result = $db->fetch_arr($query,MYSQL_ASSOC)) {
$all[] = $result;
}
$smarty->assign('all',$all);
$smarty->display('all.html');
?>
PHP
1
https://gitee.com/helloz/mblog.git
git@gitee.com:helloz/mblog.git
helloz
mblog
mblog
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891