<?php require_once 'classes/connection.class.php'; require_once 'classes/event.class.php'; $viewobj = new Event(); $views = $viewobj->viewEvent(); /*echo '<pre>'; print_r($views); echo '</pre>';*/ ?> <table class="table" width="698" border="1"> <tbody> <tr> <th width="71" scope="row"><strong>EventID</strong></th> <td width="47"><strong>Event Title</strong></td> <td width="69"><strong>Event Desc</strong></td> <td width="44"><strong>Date</strong></td> <td colspan="2"><strong>Action</strong></td> </tr> <?php if (sizeof($views > 0)) { foreach ($views as $value) { ?> <tr> <th scope="row"> <?php