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


PHP crud::conn方法代碼示例

本文整理匯總了PHP中crud::conn方法的典型用法代碼示例。如果您正苦於以下問題:PHP crud::conn方法的具體用法?PHP crud::conn怎麽用?PHP crud::conn使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在crud的用法示例。


在下文中一共展示了crud::conn方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: crud

31. Epístolas Gerais II
32. Apocalipse II
33. Fundamentalismo
34. Ministérios Eclesiásticos
35. Escola Bíblica na Igreja
36. Técnicas de comunicação
								</p>
							
							</div>
							<h2>OUTRAS INFORMAÇÕES</h2>
							
							<?php 
include 'class/crud-pdo.php';
//CRUD
$conecta = new crud();
$conecta->conn();
$resultado_query = $conecta->dbSelect('cursos', 'id', 2);
foreach ($resultado_query as $res) {
}
?>
							<div  class="col-sm-6">
<p style="font-size:18px; text-align:justify;">
Investimento: de R$ <?php 
echo $res['valor_antigo'];
?>
 por R$ <?php 
echo $res['valor_prazo'];
?>
 e ainda pode ser dividido em até <?php 
echo $res['prestacao'];
?>
開發者ID:janderfrancisco,項目名稱:saara_cursos,代碼行數:31,代碼來源:nivel_medio.php

示例2: array

        $values = array('Login:text' => 'user: nick name', 'Senha:password' => 'pass:4321');
        $la .= $form->StartForm("auth.php?page=login");
        $la .= $form->SimpleForm($values);
        $la .= $form->ExitForm("logar");
        print $la;
        break;
    case "login":
        test_csrf();
        $user = $_POST['user'];
        $pass = $_POST['pass'];
        $secret = $frase . $pass;
        $_SESSION['userronin'] = $user;
        $gen = new Bcrypt(12);
        $bcrypt_hash = $gen->hash($secret);
        $pdo2 = new crud();
        $pdo2->conn();
        $stmt = $pdo2->db->prepare("select * FROM userronin WHERE login = ?  ");
        $stmt->bindValue(1, $user, PDO::PARAM_STR);
        $stmt->execute();
        $res = $stmt->fetchAll();
        $_SESSION['passronin'] = $bcrypt_hash;
        if ($gen->verify($bcrypt_hash, $res[0]['pass']) == "false") {
            print "<img src=\"../view/images/alerta.png\">\n            <h1>ERROR at auth  05</h1> \n            <meta HTTP-EQUIV='refresh' CONTENT='2; URL=../view/login.php'>";
            exit;
        }
        $janela = '    		<div class="portlet portlet-closable x4">	
				<div class="portlet-header">
					<h4>Login manager</h4> 
				</div> <!-- .portlet-header -->		
				<div class="portlet-content">
                                ';
開發者ID:CoolerVoid,項目名稱:Ooze,代碼行數:31,代碼來源:auth.php


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