| Current Path : /home/www/khana.org.af/server/about/ |
| Current File : /home/www/khana.org.af/server/about/read.php |
<?php
require_once('../conn.php');
$query = "SELECT * FROM `about`";
if (isset($_POST['id'])) {
$query .=" where type='$_POST[id]'";
}
$query .=" order by id desc limit 1";
$select = $conn->prepare($query);
$select->execute();
$data = '';
while ($row = $select->fetch(PDO::FETCH_ASSOC)) {
$data ='<div class="container">
<div class="row gy-4">
<div class="col-lg-12 content" data-aos="fade-up" data-aos-delay="100">
<h1>Organization History</h1>
<ul>
<li><i class="bi bi-check-circle"></i> <span>'.$row['about'].'</span></li>
</ul>
<h5 contenteditable="">
'.$row['about_info'].'
</h5>
</div>
</div>
</div>';
}
echo $data;