Kok bingung to mas,
kan tinggal diloop aja.
Klo biasanya pake
$i=0;
while($i<=10) {
echo "<tr>";
echo "<td>".$row["colA"][$i]."</td>";
echo "<td>".$row["colB"][$i]."</td>";
echo "<td>".$row["colC"][$i]."</td>";
echo "</tr>";
$i++;
}
sekarang jadi :
$col_identify = array("colA", "colB", "colC");
foreach($col_identify as $col_name) {
echo "<tr>";
$i=0;
while($i<=10) {
echo "<td>".$col[$i][$col_name]."</td>";
$i++;
}
echo "</tr>";
}
Barisnya tetap konsisten sesuai dengan nilai array. Tinggal menyesuaikan
kondisi perulangannya aja.
Script di atas sbg contoh aja.
//Kalau mentari tak lagi merah. Pada siapa kita memohon hujan.
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
--
www.itcenter.or.id - Komunitas Teknologi Informasi Indonesia
Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ITCENTER/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ITCENTER/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/