Minggu, 22 September 2013

PHP Indonesia - Facebook: permisi gan saya mau tanya + minta bimbingan. say...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
permisi gan saya mau tanya + minta bimbingan. say...
Sep 22nd 2013, 13:22, by Moh Alif

Moh Alif 1:22pm Sep 22
permisi gan saya mau tanya + minta bimbingan.
saya kan lagi belajar menbuat program matrix di php
untuk code nya seperti ini :

include ("Koneksi.php");
$sql1 = mysql_query("Select Distinct(Kode_Kriteria) from kriteria");
while($data1 = mysql_fetch_array($sql1)){

$sql3 = mysql_query("Select Distinct(Nik_Pegawai) from pegawai");
while ($data3 = mysql_fetch_array($sql3)) {

$sql4 = mysql_query("Select max(Nilai) as Maks from nilai_kriteria where Kode_Kriteria = '".$data1['Kode_Kriteria']."'");
$data4 = mysql_fetch_array($sql4);

$sql5 = mysql_query("Select (Nilai) as nilai from nilai_kriteria where Kode_Kriteria = '".$data1['Kode_Kriteria']."' And Nik_Pegawai = '".$data3['Nik_Pegawai']."'");
$data5 = mysql_fetch_array($sql5);

echo "<br>".$data3['Nik_Pegawai']." = ".round($data5['nilai'] / $data4['Maks'],2)."</br>";
}
}

untuk output nya, rencana mau saya buat dalam bentuk tabel
Kira-kira, ada yang bisa membantu ??

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar