-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckout.php
More file actions
31 lines (26 loc) · 758 Bytes
/
checkout.php
File metadata and controls
31 lines (26 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
function display_title(){
echo "CART";
}
function display_content(){
require 'connection.php';
foreach ($_SESSION['cart'] as $index => $quantity) {
$sql = "SELECT * FROM items WHERE id='$index'";
$result = mysqli_query($conn,$sql);
$row = mysqli_fetch_assoc($result);
extract($row);?>
<section class='section-steps'>
<div class='row'>
<div class='col-md-4'>
<h4 class='cart-h4'><?php echo $name; ?></h4><br>
<h4 class='cart-h4'><?php echo $description; ?></h4><br>
<h4 class='cart-h4'><?php echo $price; ?></h4><br>
</div>
</div>
</div>
</section>
<?php
}
}
require 'index.php';
?>