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>';
}} ?>