예제 #1
0
<?php

error_reporting(E_ALL ^ E_DEPRECATED);
include "lib/connect.php";
ob_start();
if (isset($_POST["product"])) {
    $Productname = $_POST["Productname"];
    $Productdescription = $_POST["Productdescription"];
    $Productprice = $_POST["Productprice"];
    $Productquantity = $_POST["Productquantity"];
    $Image = $_POST["Image"];
}
$database = new DB_SQL();
$products = $database->products();
?>
<h2>Display Product<h2>


<?php 
$sql = mysql_query("SELECT * FROM product");
?>

<table id='products'width="1000"	border="1"	align="center"	cellpadding="0"> 
    <?php 
while ($rows = mysql_fetch_array($products)) {
    ?>

    <img src="products.php?id=1" />
       <tr>
       
       	<td width="250"><a href="#"><?php