CLICK HERE FOR BLOGGER TEMPLATES AND MYSPACE LAYOUTS »

Selasa, 10 Maret 2009


<html>
<head>
<title>Daftar Data yang ada di MySQL</title>
</head>

<body bgcolor="Green">
<a href=bukutamu.php><b>Isi Buku Tamu</b></a><br />
<font color='orange' size="3">Isi buku tamu<br />
<br />
<?php
$conn = mysql_connect("localhost","root","");
if (!$conn) {
echo "Could not connect to db";
exit(1);
}
$db = mysql_select_db("latihan",$conn);

$sqlText = "select * from bukutamu";
$result = mysql_query($sqlText);
while($row=mysql_fetch_object($result))
{
?>
<strong>Nama</strong>: <?php echo $row->nama;?><br />
<strong>Pesan</strong>: <?php echo $row->pesan;?><br />
<br />
<?php } ?>

</font> <font color='red'>
<marquee>
</marquee>
</font>
<marquee>
---- <font color='white' size="4">TERIMA KASIH</font> ----
</marquee>
</body>
</html>

0 komentar: