//The management program chang.php source code is as follows:
session_start() ?>
if($session_power==""||$session_power<1)
{
header("location: ../message.php?redirect=default.php&message=You are not an administrator");
break;
}?>
if($step=="1")
{
if(!($rs=mysql_fetch_array(mysql_query("select * from download where id='".$id."'",$cn))))
echo "提取资料出错";
else
{
?>
修改资料
}
}
if($step=="2")
{
mysql_query("update download set title='".$title."', say='".$say."',url='".$url."',size='".$size."',type='".$type."' where id=".$id,$cn);
header("location:download.php?action=show&type=$type");
}
?>
http://www.bkjia.com/PHPjc/315562.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/315562.htmlTechArticle//管理程序chang.php源代码如下: ? session_start() ? ? if($session_power==||$session_power1) { header(location: ../message.php?redirect=default.phpquot;); break; }? ?require...