Esempio n. 1
1
<?php

include_once "../../login/check.php";
include_once "../../class/factura.php";
$factura = new factura();
$CodFactura = $_GET['CodFactura'];
$CodigoControl = $_GET['CodigoControl'];
/*echo $CodFactura;
echo "<br>";
echo $CodigoControl;*/
$factura->actualizarRegistro(array("CodigoControl" => "'{$CodigoControl}'"), "CodFactura={$CodFactura}");
header("Location:../listado/ver.php?f=" . $CodFactura);
Esempio n. 2
0
<?php

include_once "../../login/check.php";
if (!empty($_POST)) {
    $Cod = $_POST['Cod'];
    $Valor = $_POST['Valor'];
    include_once "../../class/factura.php";
    $factura = new factura();
    $val = array("Estado" => "'{$Valor}'");
    $factura->actualizarRegistro($val, "CodFactura={$Cod}");
}