From 9b70b1e4c49f61523fc1696936f6ca2451b93955 Mon Sep 17 00:00:00 2001 From: roberto Date: Thu, 9 Jun 2011 08:48:31 +0000 Subject: [PATCH] =?UTF-8?q?Se=20modifica=20ocasion=5Fadd=20para=20que=20no?= =?UTF-8?q?=20descuente=20unidades=20en=20el=20proceso=20de=20a=C3=B1adir?= =?UTF-8?q?=20al=20carrito=20(porque=20el=20pedido=20puede=20no=20ser=20re?= =?UTF-8?q?alizado,=20adem=C3=A1s=20de=20no=20usar=20las=20unidades)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://192.168.0.254/svn/Proyectos.ClaveAudio_Web/trunk@14 44ade383-bb54-5b4f-835b-923f7702b206 --- ocasion_add.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ocasion_add.php b/ocasion_add.php index 1498459..e9b701d 100644 --- a/ocasion_add.php +++ b/ocasion_add.php @@ -25,16 +25,16 @@ include('db.php'); 'acabados'=>'')); // elimino el producto de la lista - $conn = db_connect(); - if($conn) { - $query = 'SELECT ocasion_unidades FROM shoop_ocasion WHERE ocasion_id = ' . $_REQUEST['id']; - $result = mysql_query($query); - if($result) { - $row = mysql_fetch_array($result); - $cuantos = $row['ocasion_unidades'] - 1; - $query = 'UPDATE shoop_ocasion SET ocasion_unidades="' . $cuantos . '" WHERE ocasion_id = ' . $_REQUEST['id']; - $result = mysql_query($query); - } - } +// $conn = db_connect(); +// if($conn) { +// $query = 'SELECT ocasion_unidades FROM shoop_ocasion WHERE ocasion_id = ' . $_REQUEST['id']; +// $result = mysql_query($query); +// if($result) { +// $row = mysql_fetch_array($result); +// $cuantos = $row['ocasion_unidades'] - 1; +// $query = 'UPDATE shoop_ocasion SET ocasion_unidades="' . $cuantos . '" WHERE ocasion_id = ' . $_REQUEST['id']; +// $result = mysql_query($query); +// } +// } header('Location: ' . $HTTP_SERVER_VARS['HTTP_REFERER']); ?> \ No newline at end of file