Heim >Backend-Entwicklung >PHP-Tutorial >marc by marc jacobs官网 基于mysql的论坛(5)
## 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];
$c
$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) {
?>