Selasa, 10 September 2013

PHP Indonesia - Facebook: assalamualaiku, saya mau bertanya, saya punya tabl...

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/ 
Compare Hotels

Find great prices for amazing hotels wherever your next destination may be. It's simple to search 100+ sites at once!
From our sponsors
assalamualaiku, saya mau bertanya, saya punya tabl...
Sep 10th 2013, 11:34, by Andi Muqsith

Andi Muqsith 11:34am Sep 10
assalamualaiku, saya mau bertanya, saya punya table seperti pada gambar, nah ditabel itu ada kolom id_type, nah id_type itu isinya ada 2, yaitu 1 dan 2, jika id typenya 1 maka warna dari result nya warna hijau dan jika 2 maka warnanya merah, nahh saya mau gimana caranya setiap ada isi warna hijau maka jumlahnya selalu ditambah dan setiap ada warna merah jumlahnya selalu dikurang, maaf ya ane nggak tau jelasinnya gimana, intinya ini program buat Private Finance. makasih

Upiq Keripiq 11:49am Sep 10
pake if mas :)
butuh variabel baru : misal $total untuk melakukan perhitungannya.

kalo bisa ngode dua warna ya udah kode ngitung totalnya taruh di if kode dua warna itu :)

maaf njelasinnya njelimet...

Andi Muqsith 11:50am Sep 10
iya sudah mas, tapi yang tampil malah 12000+13000+blablabla

Upiq Keripiq 11:53am Sep 10
tipenya benar integer kan?
di echonya waktu terakhiran aja mas :)

Andi Muqsith 11:53am Sep 10
iya integer

Upiq Keripiq 11:55am Sep 10
kalo tidak keberatan kodenya bisa di-pastebin-kan.
biar teman-teman di grup ini enak diskusi sama mas-nya :)

Andi Muqsith 11:56am Sep 10
ohiya sip ane upload dulu

Andi Muqsith 11:57am Sep 10
ini gan pastebin.com/yYxChruG

Upiq Keripiq 12:02pm Sep 10
mudah-mudahan bisa http://paste.laravel.com/PKZ

nggak bisa di tes karena ndak ada databasenya soalnya :)

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