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

📄 relist_offer_buy.php

📁 通达OA部分源代码
💻 PHP
字号:
<?php
	include_once('logincheck.php');
	include_once('myconnect.php');
/*	
	$strinlist="0";
	
	foreach($_POST as $key => $value)
	{
		if(stristr($key,"checkbox"))
				$strinlist.=",".$value;
	}
*/
	//echo $strinlist;
	//die();
	
//	$strquery=" and sb_id in ($strinlist) ";
	if(!isset($_REQUEST["sb_id"]) || !is_numeric($_REQUEST["sb_id"]))
	{
		header("Location: buyoffers.php?msg=".urlencode("Invalid Id, denied"));
		die();
	}
	
	$sb_id=$_REQUEST["sb_id"];

	$sbcurrent_date=date("YmdHis",time());
	$query_off="update sbbleads_offers_buy set sb_postedon=$sbcurrent_date where sb_id=$sb_id";
	mysql_query($query_off);
	$msgdeleted=mysql_affected_rows();
	if($msgdeleted > 0)
	{	
		header("Location: buyoffers.php?msg=".urlencode("Buy offer has been relisted"));
		die();
	}
	else
	{
		header("Location: buyoffers.php?msg=".urlencode("Unable to relist buy offer, please try again"));
		die();
	}
?>

⌨️ 快捷键说明

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