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