Finished checkout page and added a prototype sidebar
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
include 'connection.php';
|
||||
$conn = connectMysql();
|
||||
session_start();
|
||||
|
||||
$buy_id = $_GET['id'];
|
||||
$mycar = $_SESSION['mycar'];
|
||||
|
||||
foreach ($mycar as $product) {
|
||||
if($product['buy_id'] == $buy_id){
|
||||
unset($mycar[$buy_id]);
|
||||
}
|
||||
}
|
||||
|
||||
$_SESSION['mycar'] = $mycar;
|
||||
|
||||
header('location: ../shopping/cart.php');
|
||||
?>
|
||||
Reference in New Issue
Block a user