1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "Quantite")) {
$updateSQL = sprintf("UPDATE shop_panier SET client=%s, article=%s, quantite=%s WHERE id_panier=%s",
GetSQLValueString($_POST['client'], "text"),
GetSQLValueString($_POST['article'], "int"),
GetSQLValueString($_POST['quantite'], "int"),
GetSQLValueString($_POST['id'], "int"));
mysql_select_db($database_HvdBoutique, $HvdBoutique);
$Result1 = mysql_query($updateSQL, $HvdBoutique) or die(mysql_error());
$updateGoTo = "panier.php";
if (isset($_SERVER['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $updateGoTo));
} |
Partager