relist_offer_buy.php

来自「通达OA部分源代码」· PHP 代码 · 共 39 行

PHP
39
字号
<?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 + =
减小字号Ctrl + -
显示快捷键?