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


PHP dbInteger函数代码示例

本文整理汇总了PHP中dbInteger函数的典型用法代码示例。如果您正苦于以下问题:PHP dbInteger函数的具体用法?PHP dbInteger怎么用?PHP dbInteger使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: provaUpdateStatus

function provaUpdateStatus($id, $status)
{
    $fields = array();
    $fields['status'] = dbString($status);
    updateRecord('provas', $fields, 'id_prova = ' . dbInteger($id));
    if ($status == 'X') {
        $fields = array();
        $fields['status'] = dbString('X');
        updateRecord('provas_classificacoes', $fields, 'id_prova = ' . dbInteger($id));
    }
}
开发者ID:ricain59,项目名称:fortaff,代码行数:11,代码来源:provas.php

示例2: provaClassificacaoEquipaGetByFiltro

function provaClassificacaoEquipaGetByFiltro($id_prova, $status_array, $reject_status_array)
{
    $where = '';
    if ($id_prova !== -1) {
        $where .= $where == '' ? '' : ' AND ';
        $where .= "id_prova = " . dbInteger($id_prova);
    }
    if ($status_array !== null) {
        $where .= $where == '' ? '' : ' AND ';
        $where .= "status IN ('" . join("', '", $status_array) . "')";
    }
    if ($reject_status_array !== null) {
        $where .= $where == '' ? '' : ' AND ';
        $where .= "status NOT IN ('" . join("', '", $reject_status_array) . "')";
    }
    return getTable('provas_classificacoes_equipas', $where, 'classificacao');
}
开发者ID:ricain59,项目名称:fortaff,代码行数:17,代码来源:provas_classificacoes.php

示例3: equipasPorModalidade

function equipasPorModalidade($id_modalidade, $status_array, $reject_status_array)
{
    $where = '';
    if ($id_modalidade !== -1) {
        $where .= $where == '' ? '' : ' AND ';
        $where .= "id_modalidade = " . dbInteger($id_modalidade);
    }
    if ($status_array !== null) {
        $where .= $where == '' ? '' : ' AND ';
        $where .= "status IN ('" . join("', '", $status_array) . "')";
    }
    if ($reject_status_array !== null) {
        $where .= $where == '' ? '' : ' AND ';
        $where .= "status NOT IN ('" . join("', '", $reject_status_array) . "')";
    }
    return getTable('equipas_total', $where, 'modalidade_nome, pais_nome');
}
开发者ID:ricain59,项目名称:fortaff,代码行数:17,代码来源:equipas.php

示例4: modifgrGetByFiltro

function modifgrGetByFiltro($id, $status_array, $reject_status_array)
{
    $where = '';
    if ($id !== -1) {
        $where .= $where == '' ? '' : ' AND ';
        $where .= "id = " . dbInteger($id);
    }
    if ($status_array !== null) {
        $where .= $where == '' ? '' : ' AND ';
        $where .= "status IN ('" . join("', '", $status_array) . "')";
    }
    if ($reject_status_array !== null) {
        $where .= $where == '' ? '' : ' AND ';
        $where .= "status NOT IN ('" . join("', '", $reject_status_array) . "')";
    }
    //ultima variável é para o order by
    return getTable('modifgr', $where, 'modif_date');
}
开发者ID:ricain59,项目名称:fortaff,代码行数:18,代码来源:dbmodifgr.php

示例5: recheioGetById

function recheioGetById($id)
{
    $t = getTable("pp_recheio", "pp_recheio_id = " . dbInteger($id), "");
    return foreachRow($t);
}
开发者ID:ricain59,项目名称:fortaff,代码行数:5,代码来源:pp_recheio.php

示例6: rootPath

<?php

require_once '../../includes/utils.php';
include_once rootPath('includes/html_header.php', 1);
include_once rootPath('includes/master_header.php', 1);
require_once rootPath('co/check_login.php', 1);
$fields = array();
if (isset($_POST['save'])) {
    // ACTUALIZAR OU INSERIR
    if ($_POST['id_elemento'] == "") {
        $_POST['id_elemento'] = "-1";
    }
    $fields['id_elemento'] = dbInteger($_POST['id_elemento']);
    $fields['tipo'] = dbString($_POST['tipo']);
    $fields['id_delegacao'] = dbInteger($_POST['id_delegacao']);
    $fields['nome'] = dbString($_POST['nome']);
    $fields['data_nascimento'] = dbString($_POST['data_nascimento']);
    $fields['sexo'] = dbString($_POST['sexo']);
    $fields['peso'] = dbString($_POST['peso']);
    $fields['altura'] = dbString($_POST['altura']);
    $fields['sangue'] = dbString($_POST['sangue']);
    $fields['funcao'] = dbString($_POST['funcao']);
    $fields['habilitacoes'] = dbString($_POST['habilitacoes']);
    $fields['status'] = dbString("V");
    if ($_POST['id_elemento'] == "-1") {
        elementoInsert($fields);
    } else {
        elementoUpdate($fields);
    }
} elseif (isset($_POST['delete'])) {
    // CANCELAR
开发者ID:ricain59,项目名称:fortaff,代码行数:31,代码来源:edit_db.php

示例7: dbInteger

		<th>Sexo</th>
		<th>Nascimento</th>
		<th>
		<!-- funil -->
			<form action="index.php" method="GET">
				<!--<input type="hidden" name="id_delegacao" value="<?php 
echo dbInteger(-1);
?>
" /> -->
				<input type="image" src="/pw606/img/funnel_delete.png" title="Retirar filtro" onsubmit="submit-form();">
			</form>
		</th>
	</tr>
<?php 
if (isset($_GET['id_delegacao'])) {
    $id_delegacao = dbInteger($_GET['id_delegacao']);
} else {
    $id_delegacao = -1;
}
$elementos = elementoGetByFiltro($id_delegacao, -1, null, array('X'));
$alt = false;
$id_delegacao = -1;
while ($row = foreachRow($elementos)) {
    $alt = !$alt;
    if ($id_delegacao !== $row['id_delegacao']) {
        $id_delegacao = $row['id_delegacao'];
        // $alt = false;
        ?>
	<tr class="rowgroup">
		<td colspan="4">
			<img src="/pw606/img/countries/16/<?php 
开发者ID:ricain59,项目名称:fortaff,代码行数:31,代码来源:index.php

示例8: rootPath

<?php

require_once '/includes/utils.php';
include_once rootPath('includes/html_header.php', 1);
include_once rootPath('includes/master_header.php', 1);
if (isset($_POST['votar'])) {
    $fields['id_evento'] = dbInteger($_POST['id_evento']);
    $fields['apreciacao'] = dbInteger($_POST['apreciacao']);
    $fields['nome_utilizador'] = dbString($_POST['nome_utilizador']);
    apreciacaoInsert($fields);
    header('location: index.php');
}
include_once rootPath('includes/master_footer.php', 1);
开发者ID:ricain59,项目名称:fortaff,代码行数:13,代码来源:edit_db.php

示例9: visitanteDelete

function visitanteDelete($id)
{
    deleteRecord("visitantes", "id_visitante = " . dbInteger($id));
}
开发者ID:ricain59,项目名称:fortaff,代码行数:4,代码来源:visitantes.php

示例10: modalidadeDelete

function modalidadeDelete($id)
{
    deleteRecord('modalidades', "id_modalidade = " . dbInteger($id));
}
开发者ID:ricain59,项目名称:fortaff,代码行数:4,代码来源:modalidades.php

示例11: encomendasGetById

function encomendasGetById($id)
{
    $t = getTable("pp_encomendas", "pp_enc_id = " . dbInteger($id), "");
    return foreachRow($t);
}
开发者ID:ricain59,项目名称:fortaff,代码行数:5,代码来源:pp_encomendas.php

示例12: equipaDelete

function equipaDelete($id)
{
    deleteRecord('equipas', "id_equipa = " . dbInteger($id));
}
开发者ID:ricain59,项目名称:fortaff,代码行数:4,代码来源:equipas.php

示例13: localUpdateStatus

function localUpdateStatus($id, $status)
{
    $fields = array();
    $fields['status'] = dbString($status);
    updateRecord('locais', $fields, 'id_local = ' . dbInteger($id));
}
开发者ID:ricain59,项目名称:fortaff,代码行数:6,代码来源:locais.php

示例14: massaGetById

function massaGetById($id)
{
    $t = getTable("pp_massa", "pp_massa_id = " . dbInteger($id), "");
    return foreachRow($t);
}
开发者ID:ricain59,项目名称:fortaff,代码行数:5,代码来源:pp_massa.php

示例15: switch

switch ($_POST['submeter']) {
    case "Guardar":
        $status = "V";
        if ($_POST['submeter'] != "Cancelar") {
            $fields = array();
            if ($_POST['id_evento'] == "") {
                $_POST['id_evento'] = "-1";
            }
            $fields['id_evento'] = dbInteger($_POST['id_evento']);
            $fields['id_local'] = dbInteger($_POST['id_local']);
            $fields['designacao'] = dbString($_POST['designacao']);
            $fields['data_hora'] = dbString($_POST['data_hora']);
            $fields['duracao'] = dbInteger($_POST['duracao']);
            $fields['preco_bilhete'] = dbInteger($_POST['preco_bilhete']);
            $fields['lugares_vendidos'] = dbInteger($_POST['lugares_vendidos']);
            $fields['lugares_reservados'] = dbInteger($_POST['lugares_reservados']);
            $fields['status'] = dbString($_POST['status']);
            $fields['descricao'] = dbString($_POST['descricao']);
            print_r($fields);
            if ($fields['id_evento'] == "-1") {
                eventosInsert($fields);
            } else {
                eventosUpdate($fields);
            }
            echo ocurrenceError();
        }
        break;
    case "Remover":
        $status = "X";
        eventosUpdateStatus($_POST['id_evento'], $status);
        break;
开发者ID:ricain59,项目名称:fortaff,代码行数:31,代码来源:edit_db.php


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