Minggu, 15 September 2013

PHP Indonesia - Facebook: [ASK] Selamat pagi gan, begini saya mau tanya tent...

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/ 
Exotic travel ideas.

Searching for your next vacation destination? Subscribe to Off The Beaten Path, a newsletter featuring captivating locales to help you to plan your next trip.
From our sponsors
[ASK] Selamat pagi gan, begini saya mau tanya tent...
Sep 16th 2013, 00:02, by Moh Alif

Moh Alif 12:02am Sep 16
[ASK]
Selamat pagi gan, begini saya mau tanya tentang pengurutan data
saya kan mempunyai coding seperti ini :

$sql3 = mysql_query("SELECT * FROM tbmatrik");
while ($dt3 = mysql_fetch_array($sql3)) {
echo "<br>".(($dt3['Kriteria1']/$max['maxK1'])*$bobot[0])+
(($dt3['Kriteria2']/$max['maxK2'])*$bobot[1])+
(($dt3['Kriteria3']/$max['maxK3'])*$bobot[2])+
(($dt3['Kriteria4']/$max['maxK4'])*$bobot[3])."</br>";

kalau saya run hasilnya (Outputnya) seperti dibawah rencana mau saya urutkan dari nilai yang terbesar sampai yang terkecil kira-kira shobat disini bisa membantu... (untuk nilai yang tampil hasil kalkulasi)

Mazda Arrizaqu 12:15am Sep 16
pake fungsi Agregate di sql, kemudian di "Order by"

Fendi Tri Cahyono 12:18am Sep 16
bs diurutin pake algoritma sorting gan...kayak buble sort, quick sort dll. biasanya dpt di matakuliah struktur data. :D

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