mam coś takiego i chcę żeby mi wyświetlało wszystkie rekordy za bazy a wyświetla tylko jeden , dziwne trochę bo jak próbuje gdzie indziej to wyświetlają się wszystkie więc kod na pewno działa , proszę o pomoc
<?php
?>
<?php
include "../storesript/conecttomysql.php";
$product_list="";
$sql=mysql_query("SELECT * FROM products ORDER BY id ASC"); if($productCount>0) {
$id=$row["id"];
$productname=$row["productname"];
$producent=$row["producent"];
$product_list="$id $productname $producent <br />";
}
}
else {
$product_list="Brak produktów";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" href="../style/style.css" type="text/css" media="screen" />
</head>
<body>
<div align="center" id="mainwraper">
<?php include_once("../teampletHeader.php");?>
<div id="pageConten">
<?php echo "<br />";
<h2> Dodaj produkt </h2>
<form action="adding_products.php" enctype="multipart/form-data" name="myForm" id="myform" method="post">
<table>
<tr>
<td height="42">Nazwa produktu</td>
<td><label>
<input name="productname" type="text" id="productname" size="64" /></label></td></tr>
<tr>
<td height="37">Nazwa produktu</td>
<td><label>
<input name="cena" type="text" id="cena" size="64" /></label></td></tr>
<tr>
<td height="38">Nazwa produktu</td>
<td><label>
<input name="producent" type="text" id="producent" size="64" /></label></td></tr>
<tr>
<td height="43">Nazwa produktu</td>
<td><label>
<input name="numer_katalogowy" type="text" id="numer_katalogowye" size="64" /></label></td></tr>
<tr>
<td height="74">Opis</td>
<td><textarea name="opis" id="opis" size="164" cals="5"/></textarea></td></tr>
<td height="40">ProductImage</td>
<td><label>
<input type="file" name="fileField" id="fileField"/>
</label></td>
<tr>
<td height="40">Dodaj
<td><label>
<input type="submit" name="button" id="button" value="Dodaj produkt" />
</label></td>
</tr>
</table>
</form>
</div>
<?php include_once("../teampletFoter.php");?>
</div>
</body>
</html>