本文整理汇总了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 = "";