how can i delete notification from the bar notifications

how can i delete notification from the bar notifications without deleting from database like facebook. when i click cross the notification disappear

<?php 
$sql_get1=mysqli_query($connection,"SELECT * FROM message WHERE status=0");
if (mysqli_num_rows($sql_get1)>0) {


while ($result=mysqli_fetch_assoc($sql_get1)) {




         echo '<div class="font-weight-bold">';
                 echo '   <div class="text-truncate badge-counter">'.$result['name'].'</div>';
                echo '    <div class="small text-gray-500 bg-gradient-primary">'.$result['message'].'</div>';
                 echo ' </div>';
                }} ?>

how disable buttons accept and reject after changing the status

<?php
include('connexion.php');
include('security.php');
include('includes/header.php'); 
include('includes/navbar.php'); 



?>


<body>


    <?php

if(isset($_POST["approved"]))
{ 
    $id_location=$_POST['id_location'];
$sql="UPDATE location SET etat = 'Approved' WHERE id_location = '$id_location'";
mysqli_query($connection,$sql);

}
if(isset($_POST["rejected"]))
{ 
    $id_location=$_POST['id_location'];
$sql="UPDATE location SET etat='Rejected' WHERE id_location = '$id_location'";
mysqli_query($connection,$sql);
}
?>

<div class="container-fluid">

    <div class="card shadow mb-4">
        <div class="card-header py-3">
            <h6 class="m-0 font-weight-bold text-primary">
            Rentals</h6>

        </div>
        <div class="card-body">

<div class="container">

<div class="row justify-content-center">


    <?php 

/*$query="SELECT  * from voiture v,location l,user u where v.id_voiture=l.id_voiture AND l.id_user=u.id_user";
*/
$query="select * from (voiture v right join location l on (v.id_voiture=l.id_voiture)) inner join user u on (l.id_user=u.id_user)";
$query_run=mysqli_query($connection,$query);
if(mysqli_num_rows($query_run)>0){



?>
<table class="table">
        <thead>
            <tr><th>User</th>
                <th>Car</th>
                <th>Modele</th>
                <th>Type</th>
                <th>mileage</th>
                <th>prix</th>
                <th>from date</th>
                <th>to date</th>
                <th>person</th>
                <th>luggage</th>
                 <th>status</th>
                <th >accept</th>
                <th >Delete</th> 
            </tr>
        </thead>
        <tbody>


<?php
    while ($row=mysqli_fetch_assoc($query_run)) {


?>

<tr>

    <td><?php echo $row['username'];?></td>
    <td><?php echo $row['nom'];?></td>
    <td><?php echo $row['model'];?></td>
    <td><?php echo $row['type'];?></td>
    <td><?php echo $row['kilometrage'];?></td>
    <td><?php echo $row['prix'];?></td>
    <td><?php echo $row['from_date'];?></td>
    <td><?php echo $row['to_date'];?></td>
    <td><?php echo $row['person'];?></td>
    <td><?php echo $row['luggage'];?></td>
    <td><?php echo $row['etat'];?></td>

    <td><form method="post" action="">
        <input type="hidden" name="id_location" value="<?php echo $row['id_location']; ?>">
        <button  type="submit" name="approved"  class="btn btn-success"  >approved</button></form></td>
    <td><form method="post"  action="">
<input type="hidden" name="id_location" value="<?php echo $row['id_location']; ?>">
        <button type="submit" name="rejected" class="btn btn-danger"  >reject</button></form></td>





</td> 
</tr>
<?php } ?>
</tbody>
</table>    
<?php } ?>

</div>




</form>




<?php include('includes/scripts.php');

?>

filter cars according to their brands

filter cars according to their brands

filtrer.png

hiplease help me to filter the cars that's the code of
index.php(displaying cars from database)

<section class="gauto-offers-area section_70">
         <div id="myBtnContainer">
            <input type="hidden" name="marque" id="myInput">
            <div class="row">
               <div class="col-md-12">
                  <div class="site-heading">
                     <h4>Viens avec</h4>
                     <h2>meilleures offres</h2>
                  </div>
               </div>
            </div>
            <div class="row">
               <div class="col-md-12">
                  <div class="offer-tabs">
                     <ul class="nav nav-tabs" id="offerTab" role="tablist">
                        <li class="nav-item" >
                           <a class="nav-link active" id="all-tab"  data-toggle="tab" href="" role="tab" aria-controls="all" aria-selected="true" >Toutes les marques</a>

                        </li>
                        <li class="nav-item" >
                           <a class="nav-link"  id="nissan-tab" data-toggle="tab" href="" role="tab" aria-controls="nissan" aria-selected="false">nissan

                           </a>

                        </li>
                        <li class="nav-item" >
                           <a class="nav-link" id="Toyota-tab"  data-toggle="tab" href="index.html#Toyota" role="tab" aria-controls="Toyota" aria-selected="false">Toyota</a>
                        </li>
                        <li class="nav-item"  >
                           <a class="nav-link"  id="Audi-tab" data-toggle="tab" href="index.html#Audi" role="tab" aria-controls="Audi" aria-selected="false">Audi</a>
                        </li>
                        <li class="nav-item" >
                           <a class="nav-link"   id="mercedes-tab"  data-toggle="tab" href="index.html#mercedes" role="tab" aria-controls="mercedes" aria-selected="false">mercedes</a>
                        </li>
                     </ul>

                     <div class="tab-content" id="offerTabContent">
                        <!-- All Tab Start -->
                        <div class="tab-pane fade show active" id="all" role="tabpanel" aria-labelledby="all-tab">

                         <div class="row  ">
<?php     
$query="select * from voiture";
$query_run=mysqli_query($conn,$query);
$rep = mysqli_fetch_assoc($query_run);
if(mysqli_num_rows($query_run)>0){
 while ($row=mysqli_fetch_assoc($query_run)) {

?>
                     <div class="col-lg-4">
                                 <div class="single-offers">
                                    <div class="offer-image">
                                       <a href="index(1).php">
                                        <?php echo'<img src="admin/admin2/upload/'.$row['image'].'" width="100px;" height="100px;" alt="image">'?>
                                       </a>
                                    </div>

                                    <div class="offer-text">
                                       <a href="index.html#">
                                          <h3><?php echo $row['nom'];?></h3>
                                       </a>
                                       <h4>$<?php echo $row['prix'];?><span>/ Jour</span></h4>
                                       <ul>
                                          <li><i class="fa fa-car"></i><?php echo $row['model'];?><br/></li>
                                          <li><i class="fa fa-cogs"></i><?php echo $row['type'];?><br/></li>
                                          <li><i class="fa fa-dashboard"></i><?php echo $row['kilometrage'];?><br/></li>
                                       </ul>
                                       <div class="offer-action">
                                          <a href="index.html#" class="offer-btn-1">Voiture de location</a>
                                          <a href="car-booking(1).php?id_voiture=<?php echo $row['id_voiture'] ?>" class="offer-btn-2" >Dtails</a>
                                       </div>
                                    </div>
                                 </div>
                              </div><?php }}}
                               ?>

                               </div>
                  </div>
               </div>
            </div>
         </div>
      </section>

Warning: Cannot modify header information – headers already sent in C:\xamp

please help me
Warning: Cannot modify header information - headers already sent in C:\xampp\htdocs\gauto-preview\gauto-preview\login(1).php on line 19

<?php
ob_start();
session_start();
require_once('connexion.php');
error_reporting(E_ALL | E_WARNING | E_NOTICE);
ini_set('display_errors', TRUE);
if(isset($_POST['login'])){
$username=$_POST['username'];
$motpasse=$_POST['motpasse'];
if($username&&$motpasse){
$query="SELECT*from user where username='$username' AND motpasse='$motpasse'";
$query_run=mysqli_query($conn,$query);
$rep = mysqli_fetch_assoc($query_run);
if($rep!=''){
$_SESSION['id_user'] = $rep['id_user'];}
$row=mysqli_num_rows($query_run);
if($row==1){
 flush();  
 header('Location: index(1).php'); 
 exit();

 //echo"<script type='text/javascript'>location.href='index(1).php';</script>";

//die('should have redirected by now');
}else{
echo "username ou password incorrect";
}                                                                         
}else{
echo "veuillez saisir tous les champs";
}
} 
?>