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