alquran-Q

alquran-Q

al-Quran

al-Quran
kiTAbq

Sabtu, 09 Mei 2009

LIHAT ISI PHP:

LIAT PHP

&lthtml&gt
&lthead&gt
&lttitle&gtDaftar Data yang ada di MySQL&lt/title&gt
&lt/head&gt

&ltbody bgcolor="#000000"&gt
&lta href=bukutamu.php&gtIsi Buku Tamu&lt/a&gt&ltbr /&gt
&ltfont color="#FFFFFF" size="3"&gtIsi buku tamu&ltbr /&gt
&ltbr /&gt
&lt?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))
{
?&gt
&ltstrong&gtNama&lt/strong&gt: &lt?php echo $row->nama;?&gt&ltbr /&gt
&ltstrong&gtPesan&lt/strong&gt: &lt?php echo $row->pesan;?&gt&ltbr /&gt
&ltbr /&gt
&lt?php } ?&gt
&ltmarquee&gt
---
&lt/marquee&gt
&lt/font&gt &ltfont color="#FFFFFF"&gt
&ltmarquee&gt
&lt/marquee&gt
&lt/font&gt
&ltmarquee&gt
&ltfont color="#FF0000" size="3"&gtAYO KAMU BISA BIKIN PROGRAM PAKE PHP
running text&lt/font&gt----
&lt/marquee&gt
&lt/body&gt
&lt/html&gt

Tidak ada komentar:

Posting Komentar