Home  >  Article  >  Backend Development  >  A program download management program (4)_PHP tutorial

A program download management program (4)_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:05:43837browse

//The management program chang.php source code is as follows:

{
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");
}
?>

www.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...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn