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


PHP MYSQL::basedatos方法代碼示例

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


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

示例1: saca_iva

        //Print on a shared printer (requires at least Acrobat 6)
        $script = "var pp = getPrintParams();";
        if ($dialog) {
            $script .= "pp.interactive = pp.constants.interactionLevel.full;";
        } else {
            $script .= "pp.interactive = pp.constants.interactionLevel.automatic;";
        }
        $script .= "pp.printerName = '\\\\\\\\" . $server . "\\\\" . $printer . "';";
        $script .= "print(pp);";
        $this->IncludeJS($script);
    }
}
//*****************CONEXION  A SIMA***************
require CONSTANT_PATH_CONFIGURACION . '/baseDatos.php';
$base = new MYSQL();
$basedatos = $base->basedatos();
$conexionManual = new MYSQL();
$conexionManual->conecta();
//**************************************************
$pdf = new PDF_AutoPrint();
$pdf->AddPage();
function saca_iva($can, $por)
{
    $cant = $can;
    $can = $can / 100 * $por;
    $can += $cant;
    return $can;
}
//aqui estoy
//$_GET['keyClientesInternos']='22822';
$sSQL311 = "Select  * From clientesInternos WHERE keyClientesInternos='" . $_GET['keyClientesInternos'] . "' ";
開發者ID:rusli-nasir,項目名稱:hospitalPhp,代碼行數:31,代碼來源:imprimirCargosInternos.php

示例2: roundTo

<?php

require '/Constantes.php';
require CONSTANT_PATH_CONFIGURACION . "/baseDatos.php";
$usuario = NULL;
$fecha = NULL;
$hora = NULL;
$nivel1 = NULL;
$nivel3 = NULL;
$porcentajePS = NULL;
$keyPA = NULL;
$basedatos = MYSQL::basedatos();
$conecta = MYSQL::conecta();
function roundTo($number, $to)
{
    return round($number / $to, 0) * $to;
}
//TODAS LAS ENTIDADSEs
$sSQL0 = "SELECT\n* \nFROM \nentidades\n \n";
$result0 = mysql_db_query($basedatos, $sSQL0);
while ($myrow0 = mysql_fetch_array($result0)) {
    $entidad = $myrow0['codigoEntidad'];
    //TODOS articulos en request
    $sSQL1 = "SELECT\n* \nFROM \nprecioArticulos\nwhere\nentidad='" . $entidad . "'\n   and\n    status='request'\n\n";
    $result1 = mysql_db_query($basedatos, $sSQL1);
    while ($myrow1 = mysql_fetch_array($result1)) {
        $codigo += 1;
        $a += 1;
        if ($col) {
            $color = '#FFCCFF';
            $col = "";
開發者ID:rusli-nasir,項目名稱:hospitalPhp,代碼行數:31,代碼來源:actualizaPrecios.php


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