| Current Path : /var/www/html/nadineandmiabeauty/admin/classes/ |
| Current File : /var/www/html/nadineandmiabeauty/admin/classes/commentshow.php |
<?php
require_once('../autoload.php');
$config = config::getAppConfig();
$db = new pdocrudhandler();
if (isset($_POST['viewcomments'])) {
extract($_POST);
$res = $db->select($config['table']['comment'],array("*"),'where blog_id = ? and active = ?',array($blog_id,'1'), 'ORDER BY id DESC');
if($res['status'] == 'success'){
for ($i=0; $i <count($res['result']) ; $i++) {
?>
<div class="blog-post-author ">
<div class="author-info">
<div class="liSne"></div>
<h5><a href="#" class="author-name"><?php echo $res['result'][$i]->comment ?></a></h5>
<span class="author-role"><?php echo date('F j, Y, g:i a',strtotime($res['result'][$i]->created_on)); ?></span>
</div>
</div>
<?php
}
}
}
?>