<div class="tab-content"> <div id="restaurants" class="tab-pane fade in active"> <div class="table-responsive"> <table class="table table-hover"> <thead> <tr> <th>Date Registered</th> <th>Name</th> <th>Details</th> <th>Actions</th> </tr> </thead> <tbody id="items"> <?php foreach ($restaurantNewArray as $res) { $owner = $admin->getOwnerByResId($res['restaurant_id']); ?> <tr> <td><?php echo date('m-d-Y', strtotime($res['registration_date'])); ?> </td> <td><?php echo $res['name']; ?> </td> <td> <a href="<?php echo '../home/restaurant.php?resid=' . $res['restaurant_id']; ?>