Monday, March 2, 2009

View Bloglist dot PHP

Bagian Awal yang harus anda Copy

<html>

<? include"koneksi.inc.php";

$sqlj=mysql_query("SELECT * FROM bloglist");
$jum=mysql_num_rows($sqlj);

$sql=mysql_query("SELECT * FROM bloglist ORDER BY RAND() LIMIT $jum");
?>

<body bgcolor="#ffffff" leftmargin="0">
<table style="position:absolute;top:0;left:0px;z-index:100" width="1000px" height="270px" bgcolor="#ffffff"><tr><td> </td></tr></table>

<script type="text/javascript">
function myPopup2() {
window.open( "http://blogproject.ueuo.com/forminputbloglist.php", "myWindow",
"status = 1, height = 350, width = 400, resizable = 0,scrollbars=yes; left=10" )
}

</script>

<div style="position:absolute; overflow:auto;top:5;left:0px;z-index:101;font-size:11px;width:220px;height:400px;padding:3px;font-family:verdana">

<?
if($jum!="0")
{
echo"$jum BLOG<br><br>";
$x=0;
while($hsl=mysql_fetch_array($sql))
{
$x++;
$scroll[$x]="$hsl[ket]<br><a href=\"$hsl[link]\" target=\"_blank\"><b>$hsl[nama]</b></a>";
echo"$scroll[$x]<br><br>";
}
}
?>
</div>
<div style="position:absolute;top:420px;z-index:101;font-size:10px;font-family:verdana;width:170px" align="right"><button onClick="window.location.reload()" style="font-size:8pt">refresh</button><button onClick="myPopup2()" style="font-size:8pt">add</button>
</div>
</body>
</html>

Bagian Akhir

Catatan : text yang berwarna merah, ganti dengan alamat hosting anda

No comments:

Post a Comment