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/ | |
 | Marketing Mobile Apps
This online course focuses on marketing efforts that will increase your app's exposure and establish a mobile app marketing plan. Enroll today for $99.  | From our sponsors | | |
bang gimana cara nya biar page halaman nya selalu ... Oct 14th 2013, 08:28, by Taufik Ismail | bang gimana cara nya biar page halaman nya selalu ada di bawah ? berikut codingan saya :
$per_page = 3; $page_query = mysql_query("SELECT COUNT(*) FROM anggota"); $pages = ceil(mysql_result($page_query, 0) / $per_page); $page = (isset($_GET['page'])) ? (int)$_GET['page'] : 1; $start = ($page - 1) * $per_page; $query = mysql_query("SELECT * FROM anggota LIMIT $start, $per_page"); echo "<div id='gallery'> "; echo"<ul id='main'>"; while($query_row = mysql_fetch_assoc($query)){
$b = $query_row['nama_anggota']; $e = $query_row['Foto']; $f = $query_row['no_id']; $namafolder="CPANNEL/fotoanggota/"; $gambar = $namafolder .basename($e) ; echo "<li>". "<a href=\"profile_anggota.php?no_id=$f\">". $b . '</a>' . ""; echo "<p><img src=\"$gambar\" width=\"200\"height=\"200\"/></p>" . "</li>";
} if($pages >= 1 && $page <= $pages){ for($x=1; $x<=$pages; $x++){ echo ($x == $page) ? '<b><a href="?page='.$x.'">'.$x.'</a></b> ' : '<a href="?page='.$x.'">'.$x.'</a> '; } } |
| | atur aja di dalam CSS nya gan.. |
| | atau buat baru element css nya.. |
| | bagian gambarnya pake float left?di clear dulu coba stylenya.. |
| | gk bisa bang, bingung |
| | lahhh , bikin css nya bisa ga.../ |
| | disitu kan ada: echo "<div id='gallery'> "; echo"<ul id='main'>";
coba cari ujungnya..script echo link nya taro dibawahnya </ul> klo gak </div> coba aja cobaa.. |
| | Kalo ada Css nya iya ke panggil gan , kalo ga ada...?? | | |
|
Tidak ada komentar:
Posting Komentar