function record_searches($data) { include "../dbconnect.php"; // Corrected the paths assuming relative inclusion include "../includes/configuration.php"; $selectedCategories = $data['selectedCategories']; $selectedCities = $data['selectedCities']; $sliderValue = $data['sliderValue']; $Title = $data['value']; $timestamp=time(); $searched_by="somesh"; /*Enter the searched tourism site categories*/ foreach($selectedCategories as $selectedCategory) { $sql="INSERT INTO searches (search_category,search_title,searched_by,timestamp) VALUES ('Site Category','$selectedCategory','$searched_by','$timestamp')"; $result=mysqli_query($conn,$sql); } /*Enter the searched cities*/ foreach($selectedCities as $selectedCity) { $sql="INSERT INTO searches (search_category,search_title,searched_by,timestamp) VALUES ('Site City','$selectedCity','$searched_by','$timestamp')"; $result=mysqli_query($conn,$sql); } /*Enter the searched distances of location sites from current location */ $sql="INSERT INTO searches (search_category,search_title,searched_by,timestamp) VALUES ('Distance','$sliderValue','$searched_by','$timestamp')"; $result=mysqli_query($conn,$sql); /*Enter the searched site names */ $sql="INSERT INTO searches (search_category,search_title,searched_by,timestamp) VALUES ('Site Name','$Title','$searched_by','$timestamp')"; $result=mysqli_query($conn,$sql); }
Warning: Constant HOST already defined in /home/someshvar/tour-oman.someshvar.com/dbconnect.php on line 2

Warning: Constant USERNAME already defined in /home/someshvar/tour-oman.someshvar.com/dbconnect.php on line 3

Warning: Constant PASSWORD already defined in /home/someshvar/tour-oman.someshvar.com/dbconnect.php on line 4

Warning: Constant DATABASENAME already defined in /home/someshvar/tour-oman.someshvar.com/dbconnect.php on line 5

Warning: Trying to access array offset on null in /home/someshvar/tour-oman.someshvar.com/searchsiteresults.php on line 12

Warning: Trying to access array offset on null in /home/someshvar/tour-oman.someshvar.com/searchsiteresults.php on line 13

Warning: Trying to access array offset on null in /home/someshvar/tour-oman.someshvar.com/searchsiteresults.php on line 14

Warning: Trying to access array offset on null in /home/someshvar/tour-oman.someshvar.com/searchsiteresults.php on line 15

Warning: foreach() argument must be of type array|object, null given in /home/someshvar/tour-oman.someshvar.com/searchsiteresults.php on line 22

Warning: foreach() argument must be of type array|object, null given in /home/someshvar/tour-oman.someshvar.com/searchsiteresults.php on line 32

Bat Tombs
Lulu Ibri Bawadi Mal
Bat Tombs
23.2211017,56.4548563
Lulu Ibri Bawadi Mal
23.22123155715781,56.454780250875565