alert('Error occurred!'); "; } $total = "UPDATE user_buyer SET cart_total_price = cart_total_price + '$price' WHERE u_id='$uid'"; $res = mysqli_query($conn, $total); if (!$res) { echo ""; } } header('Location: ../cart.php'); ?>