<div> <table id="peaks"> <thead> <th>ID</th><th>Name</th><th>Elevation</th><th>Longitude</th><th>Latitude</th><th>Prominence</th><th>Range Name</th><th>State</th><th>First Ascent</th> </thead> <tbody> <?php include_once('PeakService.php'); $peak_service = new PeaksService(); $peak_array = $peak_service->getAllPeaks(); $ranges = $peak_service->getDistinctRanges(); $states = $peak_service->getDistinctStates(); foreach ($peak_array as $row) { echo "<tr><td>".$row->id."</td><td>".$row->name."</td><td>".$row->elevation."</td><td>".$row->latitude."</td><td>".$row->longitude."</td><td>".$row->prominence."</td><td>".$row->range_name."</td><td>".$row->state."</td><td>".$row->first_ascent."</td></tr>"; } ?> </tbody> </table> </div> <h3><a href="#">Add Item Form</a></h3> <div> <form id="update_form"> ID: <input id="id" name="id" type="hidden" /><br />