本文整理汇总了PHP中sql::data方法的典型用法代码示例。如果您正苦于以下问题:PHP sql::data方法的具体用法?PHP sql::data怎么用?PHP sql::data使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sql
的用法示例。
在下文中一共展示了sql::data方法的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>
示例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]);
示例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']);
}
示例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"];