here is my code Kindly assist
<?php
//session already set in config file
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
include('config/db.php');
if (isset($_POST['search'])) {
$searchValue = $_POST['searchValue'];
$sql = "SELECT * FROM tbl_donor WHERE CONCAT('id','firstname','mobilenumber','email','age','gender','gender','bloodgroup','location','posting_date' ) LIKE '%".$searchValue."%'";
}else{
$sql = "SELECT * FROM tbl_donor";
$sql = $dbh -> prepare($sql);
$sql->execute();
$searchValue = $sql ->fetchAll(PDO::FETCH_OBJ);
}
?>
<?php include_once 'includes/header.php' ?>
<div id="header">
<div class="logo"><a href="index.php"><span>BLOOD BANK </span> MANAGEMENT SYSTEM</a></div>
</div>
<!-- <a class="mobile" href="#">MAIN MENU</a> activate if on mobile view-->
<div id="container">
<div class="sidebar">
<ul id="nav">
<li><a class="selected">NAVIGATION MENU</a></li>
<li><a href="index.php">Dashboard</a></li>
<li><a href="manage_blood.php">Manage Blood Group</a></li>
<li><a href="donor.php">Add Donor</a></li>
<li><a href="acceptor.php">Add Acceptor</a></li>
<li><a href="manage_users.php" >Manage Users</a></li>
<li><a href="cpassword.php">Change Password</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div><!-- end of sidebar -->
<div class="content">
<h2>Registered Donors</h2>
<form class="filter" action="" method="POST">
<div class="wrap">
<div class="search">
<input type="text" name="searchValue" class="searchTerm" placeholder="Search....">
<button type="submit" name="search" class="searchButton">
<img <img src="assests/img/search-icon.png" style="width: 35px; height: 35px;">
</button>
</div>
</div>
<br>
<br>
<div class="table-wrapper">
<table class="f2-table">
<thead>
<tr>
<th>Id.</th>
<th>Full Name</th>
<th>Mobile</th>
<th>Email ID</th>
<th>Age</th>
<th>Gender</th>
<th>Blood Type</th>
<th>Location</th>
<th>Date Donated</th>
</tr>
</thead>
<tbody>
<?php foreach($searchValue as $result): ?>
<tr>
<td><?= $result->id; ?></td>
<td><?= $result->fullname; ?></td>
<td><?= $result->mobilenumber; ?></td>
<td><?= $result->email; ?></td>
<td><?= $result->age; ?></td>
<td><?= $result->gender; ?></td>
<td><?= $result->bloodgroup; ?></td>
<td><?= $result->location; ?></td>
<td><?= $result->posting_date; ?></td>
</tr>
</tbody>
<?php endforeach; ?>
</table>
</form>
</div>
</div><!-- end of content -->
</div><!-- end of container -->
<?php include_once 'includes/footer.php';?>