本文整理匯總了PHP中MYSQL::conecta方法的典型用法代碼示例。如果您正苦於以下問題:PHP MYSQL::conecta方法的具體用法?PHP MYSQL::conecta怎麽用?PHP MYSQL::conecta使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類MYSQL
的用法示例。
在下文中一共展示了MYSQL::conecta方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: saca_iva
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'] . "' ";
$result311 = mysql_db_query($basedatos, $sSQL311);
$myrow311 = mysql_fetch_array($result311);
示例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 = "";