Rumah > Artikel > pembangunan bahagian belakang > 基于mysql的论坛(5)_PHP教程
## manage_read.php
require ("func.php");
if (check_admin_password()) {
$board=$jl_forum[board];
switch ($job){
case "setgood":
set_good($jl_forum[board],$uid);
$work=1;
break;
case "setnogood":
set_no_good($jl_forum[board],$uid);
$work=1;
break;
case "delete":
del_doc($jl_forum[board],$uid);
$work=1;
break;
}
if (!$word) {
add_one_hit($board,$id);
}
$sql="select * from $board where id=$id";
$sql_result=mysql_query($sql);
$sum=mysql_num_rows($sql_result);
$sql_row=mysql_fetch_array($sql_result);
$title=$sql_row[title];
$writer=$sql_row[writer];
$cont=$sql_row[cont];
$writetime=$sql_row[writetime];
$hits=$sql_row[hits];
$good=$sql_row[good];
$rootid=$sql_row[id];
$fromip=$sql_row[fromip];
$sql="select * from $board where slaveid=$id";
$sql_result=mysql_query($sql);
if ($sum0) {
?>