当前位置: 首页>>代码示例>>PHP>>正文


PHP Select::selectWhere方法代码示例

本文整理汇总了PHP中Select::selectWhere方法的典型用法代码示例。如果您正苦于以下问题:PHP Select::selectWhere方法的具体用法?PHP Select::selectWhere怎么用?PHP Select::selectWhere使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Select的用法示例。


在下文中一共展示了Select::selectWhere方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Select

<?php

//echo isset($_POST['registerEmail'])."####";
include_once 'database/Insert.php';
include_once 'database/Select.php';
$getAlpha = new Select();
if (isset($_POST['blabkey']) == 'blabla') {
    $companydetails = array();
    $companydetails = $getAlpha->selectWhere("username", "email", $_POST['registerEmail']);
    //print_r($companydetails);
    if ($companydetails > 0) {
        //json_encode($companydetails);
        session_start();
        if (isset($companydetails)) {
            //$_SESSION['fullName']=$companydetails; }
            echo json_encode($companydetails);
        }
        //$companydetails = json_encode(array('item' => $companydetails));
        //echo $companydetails;
    }
} else {
    if (isset($_POST['blabkey1']) == 'blabla1') {
        $companydetails = array();
        $companydetails = $getAlpha->selectWhere("username", "email", $_POST['usrname']);
        //print_r($companydetails);
        if ($companydetails > 0 && $companydetails[0]['password'] == $_POST['psw']) {
            //json_encode($companydetails);
            session_start();
            if (isset($companydetails[0]['fullName'])) {
                $_SESSION['fullName'] = $companydetails;
                echo json_encode($companydetails);
开发者ID:pardhu24,项目名称:mypractice,代码行数:31,代码来源:loginServerValidation.php

示例2: array

 <script src="//code.jquery.com/jquery-1.9.1.js"></script>
  <script src="//ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>

 
</head>
<body class="bgimage">
<div class="topspace"></div>
		
		<?php 
include 'externallink.php';
include 'database/Insert.php';
include 'database/update.php';
$individualDetails = array();
$getAlpha = new Select();
if (isset($_GET['usernameid'])) {
    $individualDetails = $getAlpha->selectWhere("username", "usernameid", $_GET['usernameid']);
}
if (isset($_POST['submit'])) {
    $valuearry = array(htmlspecialchars($_POST['usernameid']), htmlspecialchars($_POST['id']), htmlspecialchars($_POST['fullName']), htmlspecialchars($_POST['email']), htmlspecialchars($_POST['dob']), htmlspecialchars($_POST['password']), htmlspecialchars($_POST['currentTime']), htmlspecialchars($_POST['profilePicture']), htmlspecialchars($_POST['fullAddress']), htmlspecialchars($_POST['city']), htmlspecialchars($_POST['phoneNumber']), htmlspecialchars($_POST['personalWebsite']), htmlspecialchars($_POST['languages']), htmlspecialchars($_POST['insearchofjob']), htmlspecialchars($_POST['experianceid']), htmlspecialchars($_POST['galleryid']), htmlspecialchars($_POST['skillid']));
    $updateobj = new update();
    $updateobj->updateAll("username", "usernameid", $_POST['usernameid'], $valuearry);
}
?>
</head>
<body>
    <!-- start of navigation bar --> 
	
	
	<nav class="navbar navbar-default container navbar-inverse">
		<div class="container-fluid">
		
开发者ID:pardhu24,项目名称:mypractice,代码行数:30,代码来源:usernameUpdateForm.php

示例3: array

        <script src="javascripts/jquery.validate.js" type="text/javascript">
        </script>

 
</head>
<body class="bgimage">
<div class="topspace"></div>

<?php 
include 'externallink.php';
include 'database/Insert.php';
include 'database/update.php';
$individualDetails = array();
$getAlpha = new Select();
if (isset($_GET['experianceid'])) {
    $individualDetails = $getAlpha->selectWhere("experiance", "experianceid", $_GET['experianceid']);
}
if (isset($_POST['submit'])) {
    $valuearry = array(htmlspecialchars($_POST['experianceid']), htmlspecialchars($_POST['id']), htmlspecialchars($_POST['usernameid']), htmlspecialchars($_POST['ExpectedIncome']), htmlspecialchars($_POST['CurrentIncome']), htmlspecialchars($_POST['CurrentEmployer']), htmlspecialchars($_POST['CurrentPosition']), htmlspecialchars($_POST['PreviousEmployer']), htmlspecialchars($_POST['PreviousPosition']), htmlspecialchars($_POST['YearsofExperiance']), htmlspecialchars($_POST['Summury']));
    $updateobj = new update();
    $updateobj->updateAll("experiance", "experianceid", $_POST['experianceid'], $valuearry);
}
?>
</head>
<body>
    <!-- start of navigation bar --> 
	
	
	<nav class="navbar navbar-default container navbar-inverse">
		<div class="container-fluid">
		
开发者ID:pardhu24,项目名称:mypractice,代码行数:30,代码来源:experianceUpdateForm.php


注:本文中的Select::selectWhere方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。