⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 delete.php

📁 本书主要介绍了从基础开始建立Portal的快速应用开发过程(RAD)的方法。通过本书你可以了解到关于Oracle 9iAS Portal产品的主要特性、入口的开发和组织、网络开发和管理、实际的关系型数
💻 PHP
字号:
<? include('connect.php');
   $conn=connect();
   $deletetime=date('YmdHis');
   $sql="select * from news where newsid=$newid";
   echo $sql;
   $query=mysql_query($sql,$conn);
   $array=mysql_fetch_array($query);
   if($pub_statue==1){
          $sql="update news set del_statue=1 where newsid=$newid";
   }else{
          $sql="delete from news where newsid=$newid";
		   if ($array[pic1]!=''){
		        $clas=substr($array[pic1],0,1);
				$clas=(($clas=='j')?"jpg":"gif");
				unlink("yjx/".$newid."/1.".$clas);
				}
			if ($array[pic2]!=''){
			    $clas=substr($array[pic2],0,1);
				$clas=(($clas=='j')?"jpg":"gif");
				unlink("yjx/".$newid."/2.".$clas); }
		   if ($array[pic3]!=''){
		        $clas=substr($array[pic3],0,1);
				$clas=(($clas=='j')?"jpg":"gif");
				unlink("yjx/".$newid."/3.".$clas); }
		  if ($array[pic4]!=''){
		        $clas=substr($array[pic4],0,1);
				$clas=(($clas=='j')?"jpg":"gif");
				unlink("yjx/".$newid."/4.".$clas);
			  }
			if ($array[pic5]!=''){
		        $clas=substr($array[pic5],0,1);
				$clas=(($clas=='j')?"jpg":"gif");
				unlink("yjx/".$newid."/5.".$clas);
				}
		  rmdir('yjx/'.$newid);	
   }
    	
    @mysql_query($sql,$conn);
	$sql_log="insert into news (opobject,opclass,opname,optime)values($newid,3,'$opname','$deletetime')";
	@mysql_query($sql_log,$conn);
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#FFFFFF" text="#000000">

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -