ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.110 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/computer3/litsolide.com/ODLDDD_2/OLD/includes/ |
Upload File : |
<?php
session_start();
if(!isset($_SESSION['cart'])) $_SESSION['cart'] = array();
if (isset($_GET['quantity'])) {
if ($_GET['quantity'] > 0) {
$_GET['quantity'] = '1';
$prod_id = $_GET['product'] ;
$eex= '0';
if(is_array($_SESSION['cart'])) {
foreach ($_SESSION['cart'] as $key => $product) {
if ($prod_id == $product[0]['product']) {
$eex= '1';
}
}
}
if ($eex == '0') {
array_push($_SESSION['cart'], array($_GET));
echo "success";
}
}
}
?>