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


PHP sql::selectTable方法代碼示例

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


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

示例1: sql

                            	<option value="MANHÃ">MANHA</option>
                            	<option value="TARDE">TARDE</option>
                            	<option value="NOITE">NOITE</option>
				<option value="INTEGRAL">INTEGRAL</option>
                            </select>
                        </div>
                        <div class="col-md-3">
                            <span class="label label-default">Série:</span>
                            <input name="usu_serie" type="text" class="form-control " size="10" maxlength="10" placeholder="EX: 1 ANO" autocomplete="off" required />
                    </div>
                        <div class="col-md-5">
                            <span class="label label-default">Escola:</span>
                            <select name="usu_ent_id" size="1" class="form-control dropdown" class="">
<?php 
$entidades = new sql('ent');
$sql = $entidades->selectTable(ALL, "", "{$entidades->data('nome')} ASC");
while ($campo = mysql_fetch_array($sql)) {
    ?>
                            	<option value="<?php 
    echo $campo["{$entidades->data('cod')}"];
    ?>
"><?php 
    echo $campo["{$entidades->data('nome')}"];
    ?>
</option>
<?php 
}
?>
                            </select>
                        </div>
                    </div>
開發者ID:jpedrogarcia,項目名稱:aes,代碼行數:31,代碼來源:FormCadastro.php

示例2: exportarunico

<?php

/**
 * @author pedro
 * @copyright 2014
 */
include "topo.php";
$exportar = new exportarunico($_GET['id']);
$sql = new sql('usu');
$nome = mysql_fetch_assoc($sql->selectTable(ALL, $sql->data('id') . "=" . $_GET['id']));
$files = new files("c:/", $nome[$sql->data('nome')]);
$files->writeFile($exportar->conteudo[0]);
開發者ID:jpedrogarcia,項目名稱:aes,代碼行數:12,代碼來源:backupunico.php

示例3: __autoload

<?php

include "../system/defines.php";
function __autoload($class)
{
    $file = "../system/" . $class . ".php";
    if (file_exists($file)) {
        include $file;
    } else {
        include "../functions/" . $class . ".php";
    }
}
include "exportarDados.php";
$nome = $_GET['nome'];
$user = new sql('usu');
$sql = $user->selectTable(ALL, "{$user->data('nome')}='{$nome}'");
while ($alunoCampo = mysql_fetch_array($sql)) {
    $folder3x4 = "3x4/";
    $imagem = new carteirinha();
    $imagem->codForm($alunoCampo['usu_cod_form']);
    $imagem->endereco($alunoCampo['usu_endereco'] . " - " . $alunoCampo['usu_end_num']);
    $sqlescolaid = mysql_query("SELECT * FROM ent where ent_cod=" . $alunoCampo["usu_ent_id"] . "");
    $alunoCampoescolaid = mysql_fetch_assoc($sqlescolaid);
    $folderDados = "dados/" . $alunoCampoescolaid["ent_nome"];
    $imagem->escola($alunoCampoescolaid["ent_nome"]);
    $imagem->nascimento($alunoCampo['usu_dt_nascto']);
    if (strlen($alunoCampo['usu_nome']) > 37) {
        $imagem->nome($alunoCampo['usu_abreviatura_carteira']);
    } else {
        $imagem->nome($alunoCampo['usu_nome']);
    }
開發者ID:jpedrogarcia,項目名稱:aes,代碼行數:31,代碼來源:exportar.php

示例4: sql

<?php

include 'topo.php';
$repetidos = new sql('usu');
$firthSQL = $repetidos->selectTable(ALL, '', "{$repetidos->data('nome')} ASC");
?>
<div id="list" class="container">

                      <table class="table table-bordered table-condensed">
                    <tr>
                        <td>Nome</td>
                        <td class="text-center">Editar</td>
                        <td class="text-center">Excluir</td>
                    </tr>
<?php 
while ($firth = mysql_fetch_array($firthSQL)) {
    $array[] = $firth['usu_cod_form'];
}
for ($i = 0; $i <= count($array); $i++) {
    $secoundSQL = $repetidos->selectTable(ALL, "usu_cod_form = '{$array[$i]}'");
    while ($secound = mysql_fetch_array($secoundSQL)) {
        ?>
                    
                    
                    <tr class="list">
                        <td><?php 
        echo $secound["usu_nome"];
        ?>
</td>
                        <td class="text-center"><a href="FormEditar.php?id=<?php 
        echo $secound["usu_id"];
開發者ID:jpedrogarcia,項目名稱:aes,代碼行數:31,代碼來源:repetidos.php


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