Intro:Security is the key issue that these two companies need to address before they do become then next best thing since sliced bread and revolutionize the computing and smart phone industries. Yes, I did say computing industry because these phones are in fact a small handled computer. Android is an open source mobile OS platform that's running on top of Linux kernel and the iPhone’s OS is based on the Mac OS X (Based on FreeBSD) running on the UNIX kernel. This means they both can be hacked, cracked, personal information can be stolen and the phone can be infected by newly emerging viruses and malicious code especially made for smart phones. Can these issues be addressed? Well, they should be being addressed as we speak because ultimately, security is king and users will follow the safest OS available. I know I would.
<?php
$kolom = 3; // Tentukan banyaknya kolom
$no = 1; // Untuk penomoran
mysql_connect("localhost","root","");
mysql_select_db("dbphp");
$sql = mysql_query("SELECT nama FROM anggota");
$jml_baris = mysql_num_rows($sql);
$sisa_bagi = $jml_baris % $kolom;
if ($sisa_bagi == 0)
$no_kolom = $jml_baris / $kolom;
else
$no_kolom = ceil($jml_baris/$kolom)-1;
echo "<table bgcolor=#cccccc border=1 bordercolor=#000000 ><tr >";
$ulang1 = 0;
for($i = 0; $i < $kolom; $i++){
if($sisa_bagi > 0){
$jumbaris = $no_kolom + 1;
$ulang2 = $i * $jumbaris;
$ulang1 = $jumbaris * ($i + 1);
}
else{
$ulang2 = $ulang1;
$ulang1 = ($no_kolom*($i+1))+($jml_baris % $kolom);
}
$sisa_bagi--; // decrease sisa bagi
// Tampilkan per kolom
echo "<td valign=top>";
for($j = $ulang2; $j < $ulang1; $j++){
$data = mysql_fetch_array($sql);
$no = $j+1;
echo "$no. $data[nama] <br>";
}
echo "</td>";
}
echo "</tr></table>";
?>
Download Script