Ver Mensaje Individual
  #12 (permalink)  
Antiguo 09/12/2008, 09:42
Avatar de vennersteve
vennersteve
 
Fecha de Ingreso: noviembre-2008
Ubicación: San Andrés - Isla
Mensajes: 26
Antigüedad: 15 años, 5 meses
Puntos: 0
Respuesta: Vender más de un artículo en la misma factura

Ahora resulta que tengo otro problema:

Código PHP:
<?php
    $link 
mysql_connect('localhost','root','administrator310005030605');
    
mysql_select_db('cesfa_invoice',$link);
    
$sql "UPDATE invoice SET
               DateInvoice = '" 
$_POST['DateInvoice'] . "',
            LoggedUser = '" 
$_POST['LoggedUser'] . "',
            CustomerInvoice = '" 
$_POST['CustomerInvoice'] . "',
            AddressInvoice = '" 
$_POST['AddressInvoice'] . "',
            PhoneInvoice = '" 
$_POST['PhoneInvoice'] . "',
            QuantityInvoice = '" 
$_POST['QuantityInvoice'] . "',
            DescriptionInvoice = '" 
$_POST['DescriptionInvoice'] . "',
            PriceUnitInvoice = '" 
$_POST['PriceUnitInvoice'] . "',
            PriceTotalInvoice = '" 
$_POST['PriceTotalInvoice'] . "'
            WHERE IdInvoice = '" 
$_GET['IdInvoice'] . "'";
   
$result mysql_query($sql,$link) or die(mysql_error());
   
header("Location: edit_invoice.php");
?>
Hasta ahora me pongo en la tarea de intentar actualizar registros en la db y nada, no lo hace, actua como cuando guarda un nuevo registro (INSERT).
Ayuda!!