[Solved] Search a keyword and throw an “not found” error when no results were found


i catch something

$query = "select * from ads_post where cat_name like '%$keywoed%' or city_name like '%$keywoed%'";
        $result = mysqli_query($conn, $sql);

first defined $query but mysqli_query is $sql please replace $query not $sql 🙂

$result = mysqli_query($conn, $query);

1

solved Search a keyword and throw an “not found” error when no results were found