<?
Header("content-type: application/x-javascript");
include"koneksi.inc.php";
session_start();
$numcols = 3;
$numcolsprinted = 0;
$sql=mysql_query("SELECT * FROM user order by nama ASC");
$juml=mysql_num_rows($sql);
echo"document.write('<table width=\"100%\" style=\"font-family:verdana;font-size:10px\">');";
echo"document.write('<tr><td colspan=\"3\">Total Members : $juml</td></tr>');";
$i=0;
while($hsl=mysql_fetch_array($sql))
{
$in= $hsl[1];
$i++;
if ($numcolsprinted == $numcols) {
print "document.write('</tr><tr>');";
$numcolsprinted = 0;
}
echo"document.write('<td>$i</td><td width=\"30%\"><a href=\"$hsl[url]\" target=\"_blank\" style=\"text-decoration:none\"><img src=\"http://www.blogger.com/img/b16-rounded.gif\" border=\"0\"></a> <a href=\"http://blogproject.ueuo.com/jumpmemberarea.php?id=$hsl[id]\" style=\"text-decoration:none\">$in</a></td>');";
$numcolsprinted++;
}
$colstobalance = $numcols - $numcolsprinted;
for ($i=1; $i<=$colstobalance; $i++) {
}
print "document.write('<TD></TD>');";
echo"document.write('</table>');";
?>
<-------- Batas Copy ------------>
Catatan :
Jika ingin melihat demo klik link ini demo Memberlist Multi Kolom
No comments:
Post a Comment