$stmt = $this->db_connect()->prepare('SELECT * FROM product_list where type="dvd" ORDER BY ID'); $stmt->execute(); $stmt2 = $this->db_connect()->prepare('SELECT size FROM dvd'); $stmt2->execute(); while($size = $stmt2->fetch()){ while($row = $stmt->fetch()){ echo '<div class="product">'. '<input type="checkbox" class="delete-checkbox" name="check[]" value ="'. $row['ID'].'">'; echo '<p>'.$row['sku']. '<br>' .$row['name']. '<br>'.$row['price'].'$'.' <br>'.$size['size'].'MB'.'</p>'; echo '</div>'; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)