<?php $masp = $_GET['masp']; $sp = chitietsp($masp); ?> <table width="100%" border="1" cellpadding="0" > <tr> <th colspan="2" scope="row"><h2>THÔNG TIN SẢN PHẨM</h2></th> </tr> <tr> <th width="25%" height="250" scope="col"><img src="images/<?php echo $sp['hinh']; ?> " width="235px" height="250px" /></th> <th width="75%" rowspan="3" scope="col"><?php echo $sp['motasp']; ?> </th> </tr> <tr> <th scope="row"><?php echo $sp['giasp']; ?> vnd</th> </tr> <tr> <th scope="row"><?php echo $sp['tensp']; ?> </th> </tr>
<th scope="row">Hình Ảnh</th> <td>Tên Sản Phẩm</td> <td>Giá</td> <td>Số Lượng</td> <td>Thành Tiền</td> <td> </td> </tr> <tr> <?php if (isset($_SESSION['giohang'])) { $tongtien = 0; $count = count($_SESSION['giohang']); for ($i = 0; $i < $count; $i++) { $qr = chitietsp($_SESSION["giohang"][$i]["masp"]); $thanhtien = 1; ?> <th scope="row"><img src="images/<?php echo $qr["hinh"]; ?> " width="150px" height="150px" /></th> <td><?php echo $qr["tensp"]; ?> </td> <td><?php echo $qr["giasp"]; ?> </td> <td><?php