小型bbs论坛系统开发10 前台子版块列表页

写了一天,改了很多页面,已经累到暴毙。bug真的好多..
一句话形容,苦中作乐。

<?php 
include_once './inc/config.inc.php';
include_once './inc/mysql.inc.php';
include_once './inc/tool.inc.php';
include_once './inc/page.inc.php';

$cssArray[] = 'style/public.css';
$cssArray[] = 'style/list.css';
$webTitle = '子板块列表页';
$link = sql_connect();
$member_id = is_login($link);
// 判断$_GET数据合法性
if(!isset($_GET['id']) || empty($_GET['id']) || !is_numeric($_GET['id'])){
    skip('index.php','error','id参数不合法!');
}
$query = "select id,module_name,father_module_id,info,member_id from sfk_son_module where id ={$_GET['id']}";
$result_son = sql_execute($link,$query);
if(mysqli_num_rows($result_son) != 1){
    skip('index.php','error','该子版块不存在');
}
$data_son = mysqli_fetch_assoc($result_son);
$query = "select id,module_name from sfk_father_module where id = {$data_son['father_module_id']}";
$result_father = sql_execute($link,$query);
$data_father = mysqli_fetch_assoc($result_father);

$query = "select count(*) from sfk_content where module_id = {$_GET['id']}";
$all_content = sql_num($link,$query);
$query = "select count(*) from sfk_content where module_id = {$_GET['id']} and time > curdate()";
$today_content = sql_num($link,$query);
?>
<!-- 加载头部 -->
<?php  include_once './inc/header.inc.php';?>
    <div style="margin-top:55px;"></div>
    <div id="position" class="auto">
         <
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值