Skip to content

Commit

Permalink
Adding a localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
MFox committed Apr 22, 2017
1 parent 2dd5a61 commit 9bd9fd8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Wello/www/form.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php require 'cred.php';
<?php
require 'cred.php';
$mysqli = new mysqli("localhost", $username, $password, $database);
if ( (isset($_GET['Well_ID'])) && (is_numeric($_GET['Well_ID'])) ) {
$Well_ID = $_GET['Well_ID'];
}
Expand All @@ -8,6 +10,16 @@
else {
$Well_ID = "0";
}

$query = "SELECT Date_Well_Completed, Date_of_Report, Registration_Number, State_Well_No, Other_No,
CONCAT(Owner_First_Name, ' ', Owner_Last_Name) AS 'Owner_Name',
CONCAT(Well_Street_Number, ' ', Well_Street_Name) AS 'WellAddress', Well_Town, Well_Latitude, Well_Longitude,
Drilling_Equipment, Depth_To_Top_Of_Gravel_Pack, Depth_To_Bottom_Of_Gravel_Pack
FROM well_completion_report
WHERE Permit_Number = $Well_ID";
if ($result = $mysqli->query($query)) {
$row = $result->fetch_assoc();
}
?>
<!doctype html>
<html class="no-js" lang="">
Expand Down

0 comments on commit 9bd9fd8

Please sign in to comment.