mysql - PHP Session Variable lost after click on page other category -
i have 1 site such olx.com used product buy , sell, index page has city filter drop down list, once user clicks filter see product filter city , redirect page city_filter.php till working, after city filter when user click on categories such computer or electronics user not found product, categories coming mysql database, city_filter.php included function_city.php calling function categories, please find city_filter.php function created on function_city.php follow: function displaycomputer_city(){ global $con; $get_cats = "select * categories categories_id = 1"; $run_cats = mysqli_query($con, $get_cats); while ($row_cats=mysqli_fetch_array($run_cats)) { $computer_id = $row_cats['categories_id']; $computer_title = $row_cats['categories_name']; echo "<li><a href='city_filter.php?computer_cat=$computer_id'>$...