Böyle bir Üye listeleme kodu kullanıyorum fakat listelenen üyeler tablosuz listeleniyor.
Rica etsem tablolamaya yardımcı olabilir misiniz.
Teşekkürler
<!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>Başlıksız Belge</title>
</head>
<style type="text/css">
.basarili {
color: #060;
font-weight: bold;
font-size: 18px;
}
.basarisiz {
color: #F00;
font-weight: bold;
font-size: 18px;
}
.seciliSatir {
color: #00C;
font-weight:bold;
}
</style>
<?php
if(isset($_GET['durum']))
{
if($_GET['durum']==1)
echo' <p class="basarili">İşlem başarılı!</p>';
else
echo '<p class="basarisiz">İşlem başarısız!</p>';
}
?>
</p>
<table width="400" border="0" cellspacing="0" cellpadding="0">
<?php
include_once("baglanti.php");
$sorgu="SELECT * FROM tbl_user";
$kayitlar=mysql_query($sorgu);
while($kayit=mysql_fetch_array($kayitlar))
{
?>
<tr <?php if(isset($_GET['id']))
if($_GET['id']==$kayit['id']) echo 'class="seciliSatir"'; ?>>
<td><a href="guncelle-form.php?id=<?php echo $kayit['id'];?>"><img src="duzenle.jpg" width="24" height="24"></a></td>
<td width="35"><a href="sil.php?id=<?php echo $kayit['id'];?>"><img src="sil.png" width="24" height="24"></a></td>
<td><?php echo $kayit['username']; ?></td>
<td><?php echo $kayit['password']; ?></td>
<td><?php echo $kayit['date']; ?></td>
</tr>
<?php
}
?>
</table>