本文整理汇总了PHP中Conexion::sql方法的典型用法代码示例。如果您正苦于以下问题:PHP Conexion::sql方法的具体用法?PHP Conexion::sql怎么用?PHP Conexion::sql使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Conexion
的用法示例。
在下文中一共展示了Conexion::sql方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getBusiness
function getBusiness()
{
$conexion = new Conexion();
$sql = "select * from business order by name asc";
$row = $conexion->sql($sql);
return $row;
//regresamos el arreglo con la consulta de Noticias por Campus
}
示例2: User
function User($id = 0)
{
if ($id != 0) {
$conexion = new Conexion();
$sql = "select * from login where login_id='{$id}'";
$row = $conexion->sql($sql);
$array = mysql_fetch_array($row);
$this->idUser = $array['login_id'];
$this->name = $array['login_usuario'];
$this->password = $array['login_contra'];
$this->tipe = $array['login_tipo'];
}
}
示例3: getEmailsByIdLender
function getEmailsByIdLender()
{
$conexion = new Conexion();
$sql = "select * from email where id_lender='{$this->id_lender}' order by name asc";
$row = $conexion->sql($sql);
return $row;
}
示例4: Conexion
}
if (isset($_POST['amex'])) {
$amex = $_POST['amex'];
echo $amex . '<br>';
}
if (isset($_POST['discover'])) {
$discover = $_POST['discover'];
echo $discover . '<br>';
}
if (isset($_POST['debit'])) {
$debit = $_POST['debit'];
echo $debit . '<br>';
}
if (isset($_POST['ebt'])) {
$ebt = $_POST['ebt'];
echo $ebt . '<br>';
}
$balanActual = $_POST['balanActual'];
echo $balanActual . '<br>';
$splitFunds = $_POST['splitFunds'];
echo $splitFunds . '<br>';
$ach = $_POST['ach'];
echo $ach . '<br>';
// function insertAplicacion(){ // inserta el cliente cargado en los atributos
$conexion = new Conexion();
$query = "insert into aplicacion(nomLegal,Cname,dirFisica,ciudad,estado,codigo," . "dirFacOtro,ciudadOtro,estadoOtro,codigoOtro,Pnumber,fax,taxId,fechaInicio,tiempoDue," . "website,tiempoEnt,Email,estadoIncor,tipoIndus,ultimoMes,dosMeses,tresMeses,cuatroMeses," . "ventaUltMes,tickUltimo,ventaDosMes,tickDosMes,ventaTresMes,tickTresMes,ventaCuatroMes," . "tickCuatroMes,Fname,Lname,tituloDue,dirDue,ssn,fechaNac,porcentajeDue,ciudadDue,estadoDue,cpDue," . "numCasaDue,numCelDue,Fname2,Lname2,tituloDue2,dirDue2,ssn2,fechaNac2,porcentajeDue2,ciudadDue2,estadoDue2," . "cpDue2,numCasaDue2,numCelDue2,arrendador,montoRent,cuenta,numTelCuenta,modeloTerm,numTerm,procesador," . "financiadora,promeMenVentas,Sales," . "visa,amex,discover,debit,ebt,balanActual,splitFunds,ach)" . "values('{$nomLegal}','{$Cname}','{$dirFisica}','{$ciudad}'," . "'{$estado}','{$codigo}','{$dirFacOtro}','{$ciudadOtro}','{$estadoOtro};'," . "'{$codigoOtro}','{$Pnumber}','{$fax}','{$taxId}','{$fechaInicio}','{$tiempoDue}'," . "'{$website}','{$tipoEnt}','{$Email}','{$estadoIncor}','{$tipoIndus}','{$ultimoMes}'," . "'{$dosMeses}','{$tresMeses}','{$cuatroMeses}','{$ventaUltMes}','{$tickUltimo}','{$ventaDosMes}'," . "'{$tickDosMes}','{$ventaTresMes}','{$tickTresMes}','{$ventaCuatroMes}','{$tickCuatroMes}'," . "'{$Fname}','{$Lname}','{$tituloDue}','{$dirDue}','{$ssn}','{$fechaNac}','{$porcentajeDue}','{$ciudadDue}'," . "'{$estadoDue}','{$cpDue}','{$numCasaDue}','{$numCelDue}','{$Fname2}','{$Lname2}','{$tituloDue2}','{$dirDue2}'," . "'{$ssn2}','{$fechaNac2}','{$porcentajeDue2}','{$ciudadDue2}','{$estadoDue2}','{$cpDue2}','{$numCasaDue2}'," . "'{$numCelDue2}','{$arrendador}','{$montoRent}','{$cuenta}','{$numTelCuenta}','{$modeloTerm}','{$numTerm}'," . "'{$procesador}','{$financiadora}','{$promeMenVentas}','{$Sales}','{$visa}','{$amex}','{$discover}'," . "'{$debit}','{$ebt}','{$balanActual}','{$splitFunds}','{$ach}')";
$conexion->sql($query);
// }
?>
示例5: modificar
public function modificar($a, $b, $c, $d)
{
$bd = new Conexion();
$bd->sql("update usuario_table set nombres='{$a}',apellidos='{$b}',correo='{$c}'\n\t\t\twhere id = '{$d}';");
}
示例6: updateFilter
function updateFilter()
{
$conexion = new Conexion();
$query = "update filter set business='{$this->business}',foreclosure='{$this->foreclosure}',landlord='{$this->landlord}',years='{$this->years}',bankstatements='{$this->bankstatements}',bank_average='{$this->bank_average}',nsf='{$this->nsf}',creditcard='{$this->creditcard}',creditcard_t='{$this->creditcard_t}',creditcard_average='{$this->creditcard_average}',email='{$this->email}' where id_filter='{$this->id_filter}'";
$conexion->sql($query);
}
示例7: getUsers
function getUsers()
{
$conexion = new Conexion();
$sql = "select * from user order by name";
$result = $conexion->sql($sql);
return $result;
//regresamos el arreglo con la consulta de Noticias por Campus
}
示例8: getSegmentoPaginadoSinPublicar
function getSegmentoPaginadoSinPublicar()
{
$conexion = new Conexion();
$sql = "SELECT * FROM publicacion order by id_publicacion DESC LIMIT " . ($this->page - 1) * 4 . ", 4";
$row = $conexion->sql($sql);
return $row;
}
示例9: getFilteredLenders
function getFilteredLenders()
{
$conexion = new Conexion();
$sql = "select * from lender where business Not LIKE '%{$this->business}' and foreclosure='{$this->foreclosure}' and landlord='{$this->landlord}' and total_months <='{$this->total_months}' and bankstatements='{$this->bankstatements}' and bank_average <='{$this->bank_average}' and nsf<='{$this->nsf}' and creditcard='{$this->creditcard}' and creditcard_t <='{$this->creditcard_t}' and creditcard_average <='{$this->creditcard_average}' ";
$row = $conexion->sql($sql);
return $row;
//regresamos el arreglo con la consulta de Noticias por Campus
}
示例10: altaRepresentante
function altaRepresentante()
{
$con = new Conexion();
$sql = "INSERT INTO representante (prefijo_rep, nombre_rep, ape_rep, calle_rep, num_rep, ciudad_rep, cp_rep, estado_rep, tel1_rep, tel2_rep, email_rep) " . "VALUES('{$this->prefijo}', " . "'{$this->nombre}', " . "'{$this->apellido}'," . " '{$this->calle}', " . "'{$this->numero}'," . " '{$this->ciudad}'," . " '{$this->cp}'," . "'{$this->estado}'," . " '{$this->tel1}', " . "'{$this->tel2}', " . "'{$this->email}')";
$con->sql($sql);
}