"/>
        <br>
        <br>
        <label>Longtitude:</label>
        <input type="text" name="longtd" value="<?php 
echo $_SESSION['lngtd'];
?>
"/>
        <br>
        <input type="submit" name="update" value="Update"/>
        </form>
        </div>
        <?php 
if (isset($_POST['update'])) {
    $id = $_POST["hiddenedtid"];
    $locationObj = new locations();
    $inputArray = array('id' => $_POST["hiddenedtid"], 'loc_name' => $_POST["loc_name"], 'lattd' => $_POST["lattd"], 'longtd' => $_POST["longtd"]);
    $locationObj->updateSport($inputArray);
}
?>
        <!-- End main content -->
      </div><!-- /.content-wrapper -->
      <footer class="main-footer">
        <div class="pull-right hidden-xs">
          <b>Version</b> 2.3.0
        </div>
        <strong>Copyright &copy; 2014-2015 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights reserved.
      </footer>

      <!-- Control Sidebar -->
      <aside class="control-sidebar control-sidebar-dark">
          <h1>
            Sports
            <small>Control panel</small>
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li class="active">Dashboard</li>
          </ol>
        </section>
		<?php 
require_once "classes/locations.php";
require_once "classes/db.php";
use play_a_sport\classes\locations;
use play_a_sport\classes\config;
$config = new config();
$locationObj = new locations($config);
$locationsResults = $locationObj->getLocations();
?>
        <!-- Main content -->
        <div class="box-body">
        <table border="1">
        <tr><th>Location Name</th><th>Latitude</th><th>Longtitude</th><th>Edit</th><th>Delete</th></tr>
        <?php 
foreach ($locationsResults as $specificLocation) {
    ?>
				<tr>
				<td><?php 
    echo $specificLocation["location_name"];
    ?>
</td>
				<td><?php 
?>
"/>
        <br>
        <br>
        <label>Longtitude:</label>
        <input type="text" name="longtd" value="<?php 
//echo $_SESSION["inlngtdd"];
?>
"/>
        <br>
        <input type="submit" name="add" value="Add"/>
        </form>
        </div>
        <?php 
if (isset($_POST['add'])) {
    $locationObj = new locations();
    $inputArray = array('loc_name' => $_POST["loc_name"], 'lattd' => $_POST["lattd"], 'longtd' => $_POST["longtd"]);
    $locationObj->addSport($inputArray);
}
?>
        <!-- End main content -->
      </div><!-- /.content-wrapper -->
      <footer class="main-footer">
        <div class="pull-right hidden-xs">
          <b>Version</b> 2.3.0
        </div>
        <strong>Copyright &copy; 2014-2015 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights reserved.
      </footer>

      <!-- Control Sidebar -->
      <aside class="control-sidebar control-sidebar-dark">