Populate MYSQL based on fieldname
•
Ditulis oleh Tim Pasti Oke
while ($rw=mysqli_fetch_object($siswa)){
$i++
if($i=='1'){
foreach ($rw as $key=>$value){
$out .= "<th>".strtoupper($key)."</th>"
}
$out = "<tr>$out</tr>"
}
$out .= '<tr>'
foreach ($rw as $key=>$value){
if(is_numeric($value))$out .= "<td>'$value</td>"else $out .= "<td>$value</td>"
}
$out .= "</tr>"
}
echo "<table>$out</table>"
Butuh solusi instan siap pakai?
Dapatkan modul & script server production-ready langsung di web store kami.
Komentar
Belum ada komentar. Jadilah yang pertama memberikan komentar!