public function updateSport($arr)
 {
     $id = $arr["id"];
     $location_name = $arr["loc_name"];
     $latitude = $arr["lattd"];
     $longtitude = $arr["longtd"];
     $table = "locations";
     $config = new config("localhost", "root", "", "play_a_sport_db", "", "mysqli");
     $db = new db($config);
     $db->openConnection();
     $result = $db->updateSportRecord($id, $location_name, $latitude, $longtitude);
     if ($result === true) {
         $url = 'sports.php';
         echo '<META HTTP-EQUIV=REFRESH CONTENT="0; ' . $url . '">';
     } else {
         echo $result;
         $url = 'sport_edit.php';
         echo '<META HTTP-EQUIV=REFRESH CONTENT="0; ' . $url . '">';
         echo 'Something went wrong!!!';
     }
 }