update_adv_transaction.php
来自「通达OA部分源代码」· PHP 代码 · 共 22 行
PHP
22 行
<?
include_once "logincheck.php";
include_once "myconnect.php";
$id=$_REQUEST["id"];
if (!get_magic_quotes_gpc()) {
$amount=str_replace('$', '\$',addslashes($_REQUEST["amount"]));
$description=str_replace('$', '\$',addslashes($_REQUEST["comments"]));
}
else
{
$amount=str_replace('$', '\$',$_REQUEST["amount"]);
$description=str_replace('$', '\$',addslashes($_REQUEST["comments"]));
}
mysql_query("update sbbleads_adv_transactions set
amount=$amount,description='$description' where id=$id");
$rst=mysql_fetch_array(mysql_query("select * from sbbleads_adv_transactions where id=$id"));
$id=$rst["adv_id"];
header("Location:"."view_adv_transactions.php?id=$id&msg=".urlencode("Successfully updated a transaction."));
die();
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?