Sabtu, 21 September 2013

PHP Indonesia - Facebook: Permisi Mohon bantuannya : saya punya array $ret...

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/ 
Get healthier and fit with celebrity yoga instructor, Sadie Nardini.

The course will teach you a 14 day routine so you can maintain a body more free of toxins and extra weight.
From our sponsors
Permisi Mohon bantuannya : saya punya array $ret...
Sep 21st 2013, 22:49, by Gempar Eko Prastyo

Gempar Eko Prastyo 10:49pm Sep 21
Permisi Mohon bantuannya :
saya punya array
$returnx =Array(
[1] => Array
(
[1] => 1.0690
[2] => 0.8018
[3] => 0.7276
)

[2] => Array
(
[1] => 0.5345
[2] => 0.5345
[3] => 0.4851
)

[3] => Array
(
[1] => 1.6035
[2] => 0.2673
[3] => 0.4851
)

)

kemudian saya gunakan untuk perulangan
for($a=1;$a<=3;$a++) {
for($b=1;$b<=3;$b++) {
if($a != $b){
echo "C<sub>".$a."".$b."</sub> = ";
for($qa=1;$qa<=3;$qa++){
if($returnx[$a][$qa]>=$returnx[$b][$qa]){

$queryw = mysql_query("Select bobot from jenis_nilai where id_jenis_nilai
= 'cx$qa'");
$dataq = mysql_fetch_array($queryw);
$zz[$a][$b][]= $dataq['bobot'];
$hasil_jum = array_sum($zz[$a][$b]);
echo $dataq['bobot']." ";

}

}

echo " = ".$hasil_jum."</td>";
}
}
}

Kenapa hasilnya pada saat C21 = 2 harusnya kan 0 soalnya pada saat if($returnx[2]>=$returnx[1]) semuanya tidak sesuai...??

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