📄 relist_offer.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: selloffers.php?msg=".urlencode("Invalid Id, denied"));
die();
}
$sb_id=$_REQUEST["sb_id"];
$sbcurrent_date=date("YmdHis",time());
$query_off="update sbbleads_offers set sb_postedon=$sbcurrent_date where sb_id=$sb_id";
mysql_query($query_off);
$msgdeleted=mysql_affected_rows();
if($msgdeleted > 0)
{
header("Location: selloffers.php?msg=".urlencode("Sell offer has been relisted"));
die();
}
else
{
header("Location: selloffers.php?msg=".urlencode("Unable to relist sell offer, please try again"));
die();
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -