Kamis, 14 November 2013

PHP Indonesia - Facebook: gan minta tutornya untuk menampilkan komentar di p...

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/ 
Are you an avid runner? Or even just starting out?

Brooks designs high-performance men's and women's running shoes, apparel and accessories.
From our sponsors
gan minta tutornya untuk menampilkan komentar di p...
Nov 14th 2013, 09:24, by Bay Yu Dhistira

Bay Yu Dhistira 9:24am Nov 14
gan minta tutornya untuk menampilkan komentar di php, kan saya sudah coba bikin dan berhasil tapi salahnya komentar itu tampil di setiap artikel yg saya posting, jadi gimana caranya agar komentar itu cuma tampil di artikel yg dikomentar doang?

Chiem AL-farail 9:35am Nov 14
Pke id kak

Christian Rosandhy 9:39am Nov 14
setiap halaman artikel pasti punya id unik kan? Nah, itu dijadiin field di tabel komentar juga.. Jdnya pas nampilin kira-kira jadi gini :
SELECT * FROM tb_komentar WHERE id=10; (cuma menampilkan komentar dengan id artikel yang bersangkutan)

Al Ghurahy 9:40am Nov 14
pake if() lah,
if ( $posting_tsb == $posting_yg_kamu_maksud)
echo $komentar_postingan_tsb;

Bay Yu Dhistira 9:44am Nov 14
saya sudah coba bikin id artikel difield tabel komentar tapi pas input id artikel ke tabel komentar itu gak tau sintak nya

Christian Rosandhy 9:50am Nov 14
bukannya input id artikel itu pas user masukin komentar ke artikel yang bersangkutan ya?

Bay Yu Dhistira 9:52am Nov 14
iya tapi sintak nya minta saya gan

Christian Rosandhy 9:53am Nov 14
Sintak SQLnya?
INSERT INTO nama_tabel VALUES(nama_field, .., .., .., ..);
Kalo sintaks PHPnya, ya harus disesuaikan sama scriptnya agan dulu.. :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