RonKevinT.Manuela 0 Junior Poster in Training

This code works fine except for the fact that it doesn't display what I queried on posts tabs...only this part of the code with an id=pages displays my query..i checked if I have a wrong query but it works when I change the include("../includes/mainpanelpage.php") to include("../includes/mainpanelpost.php")...meaning only the code inside the pages tab is able to read my includes where my queries are found..

<?php  require_once('../includes/config.php');
  if( !$user->is_logged_in() ){ header('Location: /sics/users/login.php'); }?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Admin/Faculty Panel</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="../css/bootstrap.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="../css/sics.css">
<style type="text/css">
 #usernav .drop {
  color: black;
 }
 </style>  
</head>
<body>
 <div id="header" class="page-container">
 <!-- TOP NAVBAR -->
 <?php include("../includes/topnavbar.php");?>
 <!-- End of Top Navbar-->
<div id="content-1" class="container">
</br>
</br>
</br>
<!-- Nav tabs -->
<ul class="nav nav-tabs admin-only" role="tablist">
 <?php include("../includes/adminfacultynavbar.php");?>
</ul>
<!-- Tab panes -->
<div class="tab-content">
  <!-- Pages -->
  <div class="tab-pane active" id="pages">
    <table class="table table-hover">
      <thead>
        <tr>
          <th>#</th>
          <th>Page</th>
          <th>Options</th>
        </tr>
      </thead>
     <?php include("../includes/MainPanelPage.php");?>
    </table>
  </div>
  <!-- Pages end -->
  <!-- Posts -->
  <div class="tab-pane" id="posts">
    <table class="table table-hover">
      <thead>
        <tr>
          <th>#</th>
          <th>Titles</th>
          <th>Options</th>
          <th><a href="#add-post" data-toggle="modal" data-         target="#addpost">AddPost</a></th>
        </tr>
      </thead>
     <?php ('../includes/MainPanelPost.php');?>
    </table>
  </div>
  <!-- Posts end -->