<?php include "../templates/header_session.php"; include "../templates/header.php"; $user_id = $_SESSION['user_id']; //including all the relevant classes include '../classes/CafeDetails.php'; //creating object of class cafe details $cafe_details = new CafeDetails(); //getting cafe id by userid $result = $cafe_details->getActivBy($user_id); ?> <body> <div id="topPan"><div id="ImgPan"><a href="index.html"><img src="../images/logo.gif" title="Coporate Profiles" alt="Coporate Profiles" width="201" height="52" border="0" /></a></div> <?php include "nav_bar.php"; ?> </div> <div id="bodyPan"> <table width="980" border="1"> <tr> <td>Cafe Name</td> <td>Cafe Owner</td> <td>Office Phone</td> <td>Address</td> </tr> <?php while ($row = mysql_fetch_array($result)) { //var_dump($row);