<?php
include ("config.php");
session_start();
$sorgu = mysql_query("SELECT * FROM mesajlar ORDER BY id desc");
while ($kayit = mysql_fetch_array($sorgu)) {
$mesajid = $kayit['id'];
echo "<table border='1' width='664' height='208'><tr><td height='23' width='509'>Yazan : " .
$kayit['isim'] . "</td>
<td height='23' width='139'>" . $kayit['tarih'] . "</td>
</tr>
<tr>
<td height='20' width='509'>Mesaj:</td>
<td height='20' width='139'>";
if (session_is_registered('admin'))
echo "asdasd";
echo "</td>
</tr>
<tr>
<td height='147' width='664' colspan='2'>" . $kayit['mesaj'] . "</td>
</tr>
</table>";
}
echo "<div align='center'><br><a href='form.php'>Sen de yaz!</a></div>";
if (session_is_registered("admin")) {
echo "<div align='right'><a href='logout.php'>cikis yap</a></div>";
}
include ("footer.php");
?>