"urunler" tablosu; id,resim,adi,aciklama
olduğunu varsayarsak, ilkel haliyle;
panel.php sayfan;
<?php
include("ayar.php");
ob_start();
session_start();
if(isset($_SESSION["login"])){
header("Location:index.php");
}
///ürün alalım
$sorgu=mysql_query("SELECT * FROM urunler");
$say=mysql_num_rows($sorgu);
?>
<!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>Kullanici Panel</title>
</head>
<body>
<table id="urunler">
<?php
if ($say > 0)
{
$i=1;
while ($al=mysql_fetch_array($sorgu))
{
echo "<tr>
<td>".strip_tags($al['resim'])."</td>
<td>".strip_tags($al['adi'])."</td>
<td>".strip_tags($al['aciklamasi'])."</td>
</tr>";
$i++;
}
}
?>
</body>
</html>