hocam burdada z_deferi_oku.php

<?php

$baglanti=mysql_connect("localhost","root","");
if (!$baglanti){ echo"mysql sunucu kapalı veya bilgiler hatalı"; exit;}
$test=mysql_select_db("ziyaretci",$baglanti);
if (!$test){ echo"veritabanı adı yanlış"; exit;}


$sorgu=@mysql_query("SELECT * FROM defter");
while ($kayit=mysql_fetch_array($sorgu)) {
	echo "müşterinin ismi:".$kayit['z_ismi']."<br>";
	echo "konu:".$kayit['z_konu']."<br>";
	echo "mesaj:".$kayit['z_mesaj']."<br>";
	print "---------------<br>";
	
	}
?>