Sabtu, 09 November 2013

PHP Indonesia - Facebook: permisi mas/mba/gan mw nanya: gimana ya bikin scri...

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/ 
Ready to move beyond the basics?

Enroll in this advanced DSLR course to explore more creative scenarios, image editing, and videography.
From our sponsors
permisi mas/mba/gan mw nanya: gimana ya bikin scri...
Nov 10th 2013, 03:41, by Prasetyo

Prasetyo 3:41am Nov 10
permisi mas/mba/gan mw nanya:
gimana ya bikin script buat nampilin data mysql yg kaya di bawah tpi pke perulangan foreach..
-------
$sql=mysql_query("select * from data");
while($tampil=mysql_fetch_array($sql)
{
echo $tampil[id];
echo $tampil[nama];
}
-------
makasih :)

Gembel Berkelas 4:06am Nov 10
$query = $pdo->query('SELECT * FROM data');
$rows = $query->fetchAll();

foreach ( $rows as $tampil ) :

echo $tampil['id'];
echo $tampil['nama'];

endforeach;

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