Ver Mensaje Individual
  #5 (permalink)  
Antiguo 13/06/2007, 15:01
linker85
 
Fecha de Ingreso: junio-2007
Mensajes: 56
Antigüedad: 16 años, 10 meses
Puntos: 0
Re: ayuda urgente con transaccion

Una duda.
Si tengo la siguiente transacción:
switch ($action) {

case 'deletePedido' :
deletePedido();
break;

case 'modifyAvaluo' :
modifyAvaluo();
break;

case 'VerGant' :
verGant();
break;

default :
header('Location: index.php');
}
function deletePedido()
{
if (isset($_GET['pedidoIdG']) && (int)$_GET['pedidoIdG'] > 0) {
$pedidoIdG = (int)$_GET['pedidoIdG'];
} else {
header('Location: index.php');
}

$sql = "DELETE FROM tbl_pedido
WHERE pe_idG = $pedidoIdG";
dbQuery($sql);

header('Location: index.php');
}
¿dónde pongo el commit y el rollback?