Sabtu, 12 Oktober 2013

PHP Indonesia - Facebook: salam sejahtera para mastah... saya ingin menampil...

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/ 
Manage your social media

Best social media tool for image publishing to Facebook and Twitter. Look amazing and delight your followers. Get 40% off when you sign up today.
From our sponsors
salam sejahtera para mastah... saya ingin menampil...
Oct 12th 2013, 08:51, by Agung Trilaksono Suwarto Putra

Agung Trilaksono Suwarto Putra 8:51am Oct 12
salam sejahtera para mastah...
saya ingin menampilkan data dari database. tetapi saya punya kriteria sebagai contoh :
saya ingin menampilkan data 10 tulisan terbaik dari table review, table, berita dan table artikel berdasarkan dari field view_count dari masing" table.

saya sudah menggunkan fungsi inner join, left join, right join dan hasilnya nihil. karena fungsi tersebut untuk menyatukan beberapa table menjadi 1. apakah mastah punya rekomendasi lain? terimakasih ~

Anton MalasBgt 8:57am Oct 12
dishare isi tabelnya mas..

Thobibul Ulum 9:00am Oct 12
saran untuk struktur tabel: jika blm terlanjur si lbh baik pake 1 tabel aja untuk menyimpan data berita, artikel, ato review bos. tp jk sdh trlanjur ya gpp, masih bnyak jalan menuju roma :D

Agung Trilaksono Suwarto Putra 9:00am Oct 12
table 1: `id_news`, `ref_user`, `ref_cats_post`, `c_title`, `c_content`, `c_image`, `c_views_count`, `c_create`, `ref_status`

table 2:`id_review`, `ref_user`, `ref_cats_post`, `c_title`, `c_content`, `c_image`, `c_expensive_p`, `c_design_p`, `c_inpiration_p`, `c_style_p`, `c_aveg_p`, `c_price`, `c_views_count`, `c_create`, `ref_status`

table 3:`id_tips_trick`, `ref_user`, `ref_cats_post`, `c_title`, `c_content`, `c_image`, `c_views_count`, `c_create`, `ref_status`

Irsal 9:01am Oct 12
Pertama, masing-masing tabel harus punya kolom peringkat.

Agung Trilaksono Suwarto Putra 9:04am Oct 12
kolom peringkat ? perlukan seperti itu ? bukannya bisa order by views_count desc ?

Irsal 9:05am Oct 12
Kolom peringkat yg mana, ga ?

Anton MalasBgt 9:07am Oct 12
Hehehe, saking semangatnya, kayaknya didefinisikan dulu requirementnya.
>>> Menampilkan data 10 tulisan terbaik dari table review, table, berita dan table artikel berdasarkan dari field view_count dari masing" table.

Anton MalasBgt 9:08am Oct 12
Detail
ada 3 tabel : Tabel 1, Tabel 2, Tabel 3
referensi field: c_view_counts <<< kolom peringkatnya

Agung Trilaksono Suwarto Putra 9:09am Oct 12
ya, lebih tepatnya c_views_count <<< kolom berapa banyak orang yang view

Anton MalasBgt 9:10am Oct 12
mas agung, menurut mas agung solusinya kayak apa?

Anton MalasBgt 9:10am Oct 12
ambil 10 masing masing, baru di sort? atau digabungin semua baru diambil 10 ?

Agung Trilaksono Suwarto Putra 9:11am Oct 12
select semua table lalu order by c_views_count .

Ħëñgky Tŵ 9:13am Oct 12
udah coba pake select join+order by view_count+limit 10 ?

Agung Trilaksono Suwarto Putra 9:14am Oct 12
saya sudah menggunkan fungsi inner join, left join, right join dan hasilnya nihil. karena fungsi tersebut untuk menyatukan beberapa table menjadi 1.

Anton MalasBgt 9:19am Oct 12
keywordnya UNION mas.. #goodluck

Agung Trilaksono Suwarto Putra 9:20am Oct 12
siap gan :3 thanks

Ħëñgky Tŵ 9:22am Oct 12
tujuanyakan tabel digabungin+sorting jumlah view+ ambil urutan 10 terbesar. kalo cman digabungin aja (join) mungkin ada yg kurang stepnya. cmiiw

Anton MalasBgt 9:27am Oct 12
wokey mas Agung Trilaksono Suwarto Putra
AnTon - Programmer Malas Banget

Agung Trilaksono Suwarto Putra 9:28am Oct 12
thanks before - close of topic -

Irsal 9:29am Oct 12
Kalo jumlah view masing2 tabel beda agak ruwet jg sih.

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