Example #1
0
function sql_delete()
{
    global $conn;
    $sql = "delete from `tarefa` where " . primarykeycondition();
    mysql_query($sql, $conn) or die(mysql_error());
}
function sql_update()
{
    global $conn;
    global $_POST;
    $sql = "update `bancos_operaciones` set `idcontrol`=" . sqlvalue(@$_POST["idcontrol"], false) . ", `tipo_operacion`=" . sqlvalue(@$_POST["tipo_operacion"], true) . ", `numero_de_documento`=" . sqlvalue(@$_POST["numero_de_documento"], true) . ", `cuenta_bancaria`=" . sqlvalue(@$_POST["cuenta_bancaria"], false) . ", `recibo_relacionado`=" . sqlvalue(@$_POST["recibo_relacionado"], false) . ", `fecha_expedicion`=" . sqlvalue(@$_POST["fecha_expedicion"], true) . ", `beneficiario`=" . sqlvalue(@$_POST["beneficiario"], true) . ", `monto_descontado`=" . sqlvalue(@$_POST["monto_descontado"], false) . ", `monto_real`=" . sqlvalue(@$_POST["monto_real"], false) . ", `estatus`=" . sqlvalue(@$_POST["estatus"], true) . ", `usuario_autorizo`=" . sqlvalue(@$_POST["usuario_autorizo"], false) . ", `eacp`=" . sqlvalue(@$_POST["eacp"], true) . ", `sucursal`=" . sqlvalue(@$_POST["sucursal"], true) . " where " . primarykeycondition();
    mysql_query($sql, $conn) or die(mysql_error());
}
function sql_delete()
{
    global $conn;
    $sql = "delete from `general_structure` where " . primarykeycondition();
    mysql_query($sql, $conn) or die(mysql_error());
}
Example #4
0
function sql_update()
{
    global $conn;
    global $_REQUEST;
    $sql = "update `parametros` set `numeracionfactura`=" . sqlvalue(@$_REQUEST["numeracionfactura"], false) . ", `setnumfac`=" . sqlvalue(@$_REQUEST["setnumfac"], false) . ", `imagenfac`=" . sqlvalue(@$_REQUEST["imagenfac"], true) . ", `fondofac`=" . sqlvalue(@$_REQUEST["fondofac"], true) . ", `imagenguia`=" . sqlvalue(@$_REQUEST["imagenguia"], true) . ", `fondoguia`=" . sqlvalue(@$_REQUEST["fondoguia"], true) . ", `filasdetallefactura`=" . sqlvalue(@$_REQUEST["filasdetallefactura"], false) . ", `ciudadactual`=" . sqlvalue(@$_REQUEST["ciudadactual"], true) . ", `ivaimp`=" . sqlvalue(@$_REQUEST["ivaimp"], false) . ", `nombremoneda`=" . sqlvalue(@$_REQUEST["nombremoneda"], true) . ", `simbolomoneda`=" . sqlvalue(@$_REQUEST["simbolomoneda"], true) . ", `nomempresa`=" . sqlvalue(@$_REQUEST["nomempresa"], true) . ", `giro`=" . sqlvalue(@$_REQUEST["giro"], true) . ", `fonos`=" . sqlvalue(@$_REQUEST["fonos"], true) . ", `direccion`=" . sqlvalue(@$_REQUEST["direccion"], true) . ", `comuna`=" . sqlvalue(@$_REQUEST["comuna"], true) . ", `codigomoneda`=" . sqlvalue(@$_REQUEST["codigomoneda"], true) . ", `numerofiscal`=" . sqlvalue(@$_REQUEST["numerofiscal"], true) . ", `resolucionsii`=" . sqlvalue(@$_REQUEST["resolucionsii"], true) . ", `rutempresa`=" . sqlvalue(@$_REQUEST["rutempresa"], true) . ", `giro2`=" . sqlvalue(@$_REQUEST["giro2"], true) . " where " . primarykeycondition();
    mysql_query($sql, $conn) or die(mysql_error());
}
function sql_delete()
{
    global $conn;
    $sql = "delete from `eacp_config_bases_de_integracion_miembros` where " . primarykeycondition();
    mysql_query($sql, $conn) or die(mysql_error());
}