<?php include('../includes/connection.php'); class User { public $result = array(); public function __construct(){ $db = new DB_con(); } ##############pagelisting######################## public function fetchpages() { $query = mysql_query("select * from admin_cms_page order by id"); $result = array(); while ($record = mysql_fetch_array($query)) { echo $result[] = $record; } return $result; } } ?>
<div class="box-body table-responsive"> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <th>Sl no.</th> <th>Page Name</th> <th>Page Title</th> <th>Action</th> </tr> </thead> <tbody> <?php <br mode="hold" /?> $page = $obg->fetchpages('admin_cms_page');?> <tr> <td><?php echo $i;??></td> <td><?php echo $page['pagename'];??></td> <td><?php echo $page['pagetitle'];??></td> <td><a class="btn btn-primary" href="manage-page.php?id=<?php echo $page['id']; ?>">Edit </a> <!-- <a class="btn btn-danger" href="manage-page.php?delete=<?php echo $page['id']; ?>" > Delete </a>--> </td> </tr> </tbody> </table> </div>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)