本文整理匯總了PHP中log::setUpdateLogAfter方法的典型用法代碼示例。如果您正苦於以下問題:PHP log::setUpdateLogAfter方法的具體用法?PHP log::setUpdateLogAfter怎麽用?PHP log::setUpdateLogAfter使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類log
的用法示例。
在下文中一共展示了log::setUpdateLogAfter方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: GetPage
$action = $_REQUEST['act'];
$error = '';
$data = '';
switch ($action) {
case 'get_add_page':
$page = GetPage();
$data = array('page' => $page);
break;
case 'save_object_id':
$c_person = $_REQUEST['c_person'];
$comp_id = $_REQUEST['id'];
$c_person = $_REQUEST['c_person'];
$phone = $_REQUEST['phone'];
$user_id = $_SESSION['USERID'];
global $log;
$log->setUpdateLogAfter('bank_object', $c_person);
if ($comp_id == '') {
$comp_id = $_REQUEST['bank_local_id'];
}
$trans_obj = $_REQUEST['trans_obj'];
$trans_address = $_REQUEST['trans_address'];
if ($c_person != '') {
mysql_query("\tUPDATE\t\t`bank_object`\r\n\t\t\t\t\t\t\tSET\t\t\t`user_id`\t\t= `{$user_id}`,\r\n\t\t\t\t\t\t\t\t\t\t`name`\t\t\t= '{$trans_obj}',\r\n\t\t\t\t\t\t\t\t\t\t`address`\t\t= '{$trans_address}'\r\n\t\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t\t\t\t\t`id` \t\t\t= {$c_person}");
$log->setInsertLog('bank_object', $c_person);
} else {
mysql_query("\tINSERT INTO bank_object\r\n\t\t\t\t\t\t\t\t\t(`user_id`,bank_id, `name`, address )\r\n\t\t\t\t\t\t\tVALUES\r\n\t\t\t\t\t\t\t\t\t('{$user_id}',{$comp_id},'{$trans_obj}', '{$trans_address}')\t");
$data = array('myid' => mysql_insert_id());
global $log;
$log->setInsertLog('bank_object');
}
break;