本文整理匯總了PHP中rating::update_profile方法的典型用法代碼示例。如果您正苦於以下問題:PHP rating::update_profile方法的具體用法?PHP rating::update_profile怎麽用?PHP rating::update_profile使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類rating
的用法示例。
在下文中一共展示了rating::update_profile方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: extract
//print_r($_POST);die;
$email = $_POST["google_email"];
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
$_POST["google_email"] = '';
$email = $_POST["google_email"];
}
extract($_POST);
if ($_POST['designation'] == '') {
//header('Location: add_user.php?id='.$id.'&chk=4');
$_GET['chk'] = 4;
} else {
$keys = array_keys($_POST);
$value = "'" . implode("','", $_POST) . "'";
$key = implode(",", $keys);
//echo "=====".$value."=====".$key;die;
$record = $renderObj->update_profile($key, $value, $_POST, $id);
//print_r($_SESSION['userinfo']);die;
$_SESSION['userinfo']->google_name = $_POST['google_name'];
if ($record == true && $_SERVER['REQUEST_METHOD'] === 'POST') {
header('Location: profile.php?chk=7');
} else {
//$_GET['chk'] = 11;
header('Location: profile.php');
}
}
}
require_once 'header.php';
?>
<!--<script type = "text/javascript" src = "js/jquery.validate.min.js" ></script>-->
<script type = "text/javascript" src = "js/validate_custom_method.js" ></script>
<script type = "text/javascript" src = "js/validation.js" ></script>
示例2: rating
<?php
require_once 'config.php';
require_once 'class/rating.php';
$update_profile_info = new rating();
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
//echo "<pre>";print_r($_POST);die;
if ($_POST['google_name'] == '' || $_POST['mobile_number'] == '' || $_POST['google_email'] == '') {
header('Location: edit_profile.php?chk=4');
} else {
$keys = array_keys($_POST);
$value = "'" . implode("','", $_POST) . "'";
$key = implode(",", $keys);
//echo "=====".$value."=====".$key;die;
$record = $update_profile_info->update_profile($key, $value, $_POST);
if ($record == true) {
header('Location: profile.php?chk=3');
}
}
}