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/ | |
 | LSAT prep from HLS-educated instructors
LSATMax includes video lessons, unlimited personal attention & support, and over 6,000 real questions from previous LSAT's. Enroll for just $299.  | From our sponsors | | |
[ASK] Gimana ya cara menampilkan baris ke berapa d... Nov 15th 2013, 16:24, by Yanhar Passbarr | [ASK] Gimana ya cara menampilkan baris ke berapa dari suatu record. misalnya tabel mk dibawah record matematika berada pada baris ke 3, perintah mysql untuk menampilkan nya gimana tu gan? |
| | limit |
| | where kode_kategori='k3' |
| | pertanyaan: - untuk apa? - untungnya apa? |
| | Adi Topandi : hasil nya nanti 3 gan, karena matematika posisinya berada pada limit ke 3. |
| | Where nama_kategori = "Matematika". Trus gunanya utk apa ? |
| | ini cara nya teknik Elektro hehehe cara cepat tapi sangat tidak disarankan... <?php //Connection to DB Here $str='SELECT * FROM nama_tabelnya ORDER BY kode_kategori ASC'; $sql=mysql_query($sql); $x=0; while($data=mysql_fetch_object($sql)){ ++$x; if($data->nama_kategori==='Matematika'){ break; } } echo "Matematika berada di baris: ".$x; ?> |
| | Terimakasih semua atas bantuannya.. | | |
|
Tidak ada komentar:
Posting Komentar