當前位置: 首頁>>代碼示例>>PHP>>正文


PHP rating::update_profile方法代碼示例

本文整理匯總了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>
開發者ID:parakh-infobeans,項目名稱:parakh,代碼行數:31,代碼來源:edit_profile.php

示例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');
        }
    }
}
開發者ID:parakh-infobeans,項目名稱:parakh,代碼行數:20,代碼來源:save_profile.php


注:本文中的rating::update_profile方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。