Kamis, 29 Agustus 2013

PHP Indonesia - Facebook: mau minta tolong nih...scriptny ada error

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/ 
Creating iOS Games: Beginner Course

Marin Todorov teaches you how to create an iPhone game easily and simply using Cocos2d in this $99 online course.
From our sponsors
mau minta tolong nih...scriptny ada error
Aug 29th 2013, 16:42, by Chang Sherly

Chang Sherly 4:42pm Aug 29
mau minta tolong nih...scriptny ada error

<?php
error_reporting(0);
require_once("../config.php");
$op = $_GET['op'];

$per_page = 5;

$page_query = mysql_query("SELECT COUNT(*) FROM post");
$pages = ceil(mysql_result($page_query, 0) / $per_page);

$page = (isset($_GET['page'])) ? (int)$_GET['page'] : 1;
$start = ($page - 1) * $per_page;

if($op == "ambiloption"){
$option = mysql_query("SELECT * from post order by Id_post desc LIMIT $start, $per_page");
echo "<table width='630'>

\n";
while($op = mysql_fetch_array($option)){
echo "<tr>

<td class='data' width='30'><img src='http://s6.postimg.org/3z7vpwa4t/arrow1.png' height='20'>
<td class='data' width='400'><a href='all_post_detail.php?id_post=".$op['Id_post']."'>
".$op['Judul_post']."</td><td class='data'>".$op['Tgl_post']."</td>\n";
}
echo "</table\n";
}
if($op == "ambilpergender"){
$option = mysql_query("SELECT * from post where gender='".$_GET['gender']."' order by Id_post desc");
echo "<table width='630'>

\n";
while($op = mysql_fetch_array($option)){
echo "<tr>
<td class='data' width='30'><img src='http://s6.postimg.org/3z7vpwa4t/arrow1.png' height='20'>
<td class='data' width='400'>".$op['Judul_post']."</td><td class='data'>".$op['Tgl_post']."</td>\n";
}
echo "</table\n";
}

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> ';
}
}
?>

Halamannya saat klik ke hal 2...gak mau ke ganti ttp 5 data berdasarkan Id_post desc...

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