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