本文整理汇总了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;