Tolong pilih kategori sesuai, jenis posting (diskusi atau bukan) dan sertakan tag/topik yang sesuai seperti komputer, java, php, mysql, dll. Promosi atau posting tidak pada tempatnya akan kami hapus!
- Bagi Anda yang ingin mendaftar, baca link berikut:
http://diskusiweb.com/discussion/50491/how-to-registrasi-diskusiweb-com-baca-ini-terlebih-dahulu
- Cara menyisipkan kode program supaya tampil rapi dan terformat dengan baik di diskusiweb.com: http://www.diskusiweb.com/discussion/50415/cara-menyisipkan-kode-program-di-diskusiweb-com
- Cara posting gambar/image di post Anda: http://www.diskusiweb.com/discussion/47345/cara-menyisipkan-menyertakan-image-pada-posting/p1
http://diskusiweb.com/discussion/50491/how-to-registrasi-diskusiweb-com-baca-ini-terlebih-dahulu
- Cara menyisipkan kode program supaya tampil rapi dan terformat dengan baik di diskusiweb.com: http://www.diskusiweb.com/discussion/50415/cara-menyisipkan-kode-program-di-diskusiweb-com
- Cara posting gambar/image di post Anda: http://www.diskusiweb.com/discussion/47345/cara-menyisipkan-menyertakan-image-pada-posting/p1
[ASK]bagaimana cara simpan data proses seleksi ke database,koding table y tidak terbaca database
<?php
include("koneksi.php");
$bobot = array(0.35, 0.25, 0.40);
function getNama($id){
$q =mysql_query("SELECT * FROm tbseleksi where nim = '$id'");
$d = mysql_fetch_array($q);
return $d['nama'];
}
echo "</table>";
$sql3 = mysql_query("SELECT * FROM tbseleksi");
echo "<H3>Perangkingan</H3>
<table width=500 style='border:1px; #ddd; solid; border-collapse:collapse' border=1>
<tr>
<td>Nim</td><td>Nama</td><td>Rangking</td>
</tr>
";
$no = 1;
while ($dt3 = mysql_fetch_array($sql3)) {
echo "<tr>
<td>$no</td><td>".getNama($dt3['nim'])."</td>
<td>"
.round((($dt3['jumlah_sertifikat']/$max['maxK1'])*$bobot[0])+
(($dt3['keaktifan']/$max['maxK2'])*$bobot[1])+
(($dt3['nilai_IPK']/$max['maxK3'])*$bobot[2]),2)."</td>
</tr>";
$no++;
}
echo "</table>";
?>
Tagged:
Comments
tulis deskripsi masalah dgn jelas di posting
bukan di judul