$status->set_req('home', 'all', null); echo '<script>var url="/requestajax/request-status.php?from=home&filter=all";</script>'; $jum_groups_array = mysql_fetch_array(mysql_query("SELECT COUNT(id_status) as jum FROM status")); $jum_groups = ceil($jum_groups_array['jum'] / 7); } else { $status->set_req('home', 'following', null); echo '<script>var url="/requestajax/request-status.php?from=home&filter=following";</script>'; $jum_groups_array = mysql_fetch_array(mysql_query("SELECT COUNT(status.id_status) AS jum FROM ikut RIGHT JOIN user ON ikut.mengikuti=user.kode_user INNER JOIN status ON user.kode_user=status.id_user WHERE ikut.user='******' OR user.kode_user='******'")); $jum_groups = ceil($jum_groups_array['jum'] / 7); } if ($jum_groups_array['jum'] == 0) { echo '<div class="wrap-message-jum-0">'; echo 'Tidak ada status yang dapat ditampilkan.'; echo '</div>'; } else { $status->tampil_status(); $last_post = $status->get_last_post(); } } echo '</div>'; ?> <center class="penutup-post"><img class='loading' src='http://idsnote.com/pic/default/loading.gif' style='display:none;'></center> </div> <?php include 'include/menu-kanan.php'; ?> </div> </div> <script> $(document).ready(function(){ var loading=false;