update_other_set.php

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

PHP
36
字号
<?
include "logincheck.php";
include_once "myconnect.php";


	if (!get_magic_quotes_gpc()) 
	{
		$sb_how_to_sell=str_replace('$', '\$',addslashes($_REQUEST["sb_how_to_sell"]));
		$sb_how_to_buy=str_replace('$', '\$',addslashes($_REQUEST["sb_how_to_buy"]));
	}
	else
	{
		$sb_how_to_sell=str_replace('$', '\$',$_REQUEST["sb_how_to_sell"]);
		$sb_how_to_buy=str_replace('$', '\$',$_REQUEST["sb_how_to_buy"]);
	}

			

$sql="update sbbleads_config set
			sb_how_to_sell='$sb_how_to_sell',
			sb_how_to_buy='$sb_how_to_buy'
		where sb_id=1";
//die ($sql);
mysql_query($sql);

if(mysql_affected_rows() == 1)
{
	header("Location:"."settings_other.php?msg=".urlencode("Help text has been updated"));
	die();
}
else
{
	header("Location:"."settings_other.php?msg=".urlencode("Unable to update help text, please try again"));
	die();
}
?>

⌨️ 快捷键说明

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