Skip to content

Commit

Permalink
Changed links and finished queries
Browse files Browse the repository at this point in the history
  • Loading branch information
MFox committed Mar 27, 2017
1 parent 6648c07 commit d30d84f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions html-ONLY-site/wells-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
exit();
}

$query = "SELECT Well_Street_Name FROM well_completion_report";
$query = "SELECT CONCAT(Well_Street_Number, ' ', Well_Street_Name) AS 'WellAddress', Well_Town, Permit_Number
FROM well_completion_report";

?>

Expand Down Expand Up @@ -67,16 +68,16 @@
/* fetch associative array */
while ($row = $result->fetch_assoc()) {
echo'
<a href="details.html">
<a href="details.php">
<div class="well-card clearfix">
<div class="well-img"></div>
<div>
<h2>'.$row["Well_Street_Name"].'</h2>
<p>short well description</p>
<h2>'.$row["WellAddress"].'</h2>
<h2>'.$row["Well_Town"].'</h2>
<p>Permit Number: '.$row["Permit_Number"].'</p>
</div>
</div>
/a>';
//printf ($row["Well_Street_Name"]);
</a>';
}

/* free result set */
Expand All @@ -87,7 +88,7 @@

<nav class="bottom-nav">
<button><a href="map.html"><img src="img/map.svg" alt="menu" /></a></button>
<button><a href="wells-list.html"><img src="img/well.png" alt="menu" /></a></button>
<button><a href="wells-list.php"><img src="img/well.png" alt="menu" /></a></button>
</nav>


Expand Down

0 comments on commit d30d84f

Please sign in to comment.