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/ | |
 | Design-Led Engineering
Sourcebits - When your Mobile App has to be absolutely developed right. We've built more than 20 apps that have cracked the Top 10 in the App Store.  | From our sponsors | | |
[ask] maaf nanya lagi :D udah jadi tinggal sediki... Aug 15th 2013, 15:09, by Ilham Syaputra | [ask] maaf nanya lagi :D
udah jadi tinggal sedikit polesan webnya :D nih kalo mau liat ~> bombgreget.ml pertanyaan: gimana buat klasifikasi tingkatan? misalkan : si a dengan spam 3 dan si b dengan spam 20 trus kalo di bawah 10 tingkatan "iseng" kalo udah lebih sepuluh tingkatan "SPAMMER"
udah di coba dengan ini $act2=mysql_fetch_array(mysql_query("SELECT spam FROM user_spammer WHERE username ='".$access_token['screen_name']."'")); if ($act2 < 10) { $Status = "iseng"; else if ($act2 > 10) { $status = "SPAMMER"; }
trus malah blank? saya coba dengan satu aja if ($act2 < 10) { $Status = "iseng"; }
muncul, nah pertanyaan ke dua, apakah ga bisa $Status nya sekali2 gitu? atau koding saya yang salah?? mohon pencerahannya :D |
| | ya jelas blank.. harusnya if ($act2 < 10) { $Status = "iseng"; else { $Status = "SPAMMER"; } |
| | buatnya bukan cuma buat 2 mas :/ mau buat 5 tingkatan |
| | ya gitu mas, satu2.. setau saya sih gitu.. sebenarnya ada sih yg nulisnya lebih sederhana, switch() tp sayangnya nggak bisa ada statement perbandingannya < >, cuma bisa == | | |
|
Tidak ada komentar:
Posting Komentar