Ok so if I replace $GET to $POST instead, I did a var dump code and that outputted the following if it helps
array(1) { ["id"]=> string(2) "20" }
Also below is the code from the view page that calls the edit page
<?php
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1);
?>
<!DOCTYPE html>
<html>
<head>
<title>IT Done Right Admin Repair Tracking</title>
<link rel="stylesheet"href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/blitzer/jquery-ui.css"/>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<script src="js/jquery.ui.timepicker.js"></script>
<link rel="stylesheet"href="css/jquery.ui.timepicker.css"/>
<link rel="stylesheet" type="text/css" media="screen" href="css/styles.css" />
<script>
$(document).ready(function() {
$('#exrtime').timepicker({
defaultTime: '12:00',
showLeadingZero: true,
showNowButton: true,
showCloseButton: true,
showDeselectButton: true,
showOn: 'both',
});
$('#exstime').timepicker({
defaultTime: '12:00',
showLeadingZero: true,
showNowButton: true,
showCloseButton: true,
showDeselectButton: true,
showOn: 'both',
});
});
</script>
</head>
<body>
<div id="logo">
<img src="images/logo/it-done-right.jpg" alt="" title="">
</div>
<?
session_start();
if($_SESSION['user']==''){
header("Location:../index.php");
}else{
include("../config.php");
$sql=$dbh->prepare("SELECT * FROM users WHERE id=?");
$sql->execute(array($_SESSION['user']));
while($r=$sql->fetch()){
echo "<div class='home-content'>";
echo "<center><h2>Hello, ".$r['username']."</h2>";
echo "<a href='../logout.php'>Log Out</a>";
echo "<br><br>";
echo "<a href='../home.php'>Home</a></center>";
echo "</div>";
}
}
?>
<?php
$host = '';
$user = '';
$password = '';
$dname = '';
$db = new mysqli($host, $user, $password, $dname);
if ($db->connect_errno) {
echo "Failed to connect to MySQL: ("
. $db->connect_errno . ") " . $db->connect_error;
}
$sql = "SELECT id, customer_name, customer_email, customer_phone, computer_make, computer_model, technician, status, exrdate, exrtime, exstdate, exstime, deltype, comments FROM repairs";
$result_db = $db->query($sql) or die('Error perform query!');
?>
<table border="1">
<tr>
<th>Repair ID</th>
<th>Customer Name</th>
<th>Customer Email</th>
<th>Customer Phone</th>
<th>Computer Make</th>
<th>Computer Model</th>
<th>Technician</th>
<th>Status</th>
<th>Expected Repair Date</th>
<th>Expected Repair Time</th>
<th>Expected Start Date</th>
<th>Expected Start Time</th>
<th>Delivery Type</th>
<th>Comments</th>
<th>Update</th>
</tr>
<?php
while ($r = $result_db->fetch_object()) {
$update = "admin/repairs-tracking/edit-repair-tracking.php?id={$r->id}";
echo '<tr>';
echo '<td>' . $r->id . '</td>';
echo '<td>' . $r->customer_name . '</td>';
echo '<td>' . $r->customer_email . '</td>';
echo '<td>' . $r->customer_phone . '</td>';
echo '<td>' . $r->computer_make . '</td>';
echo '<td>' . $r->computer_model . '</td>';
echo '<td>' . $r->technician . '</td>';
echo '<td>' . $r->status . '</td>';
echo '<td>' . $r->exrdate . '</td>';
echo '<td>' . $r->exrtime . '</td>';
echo '<td>' . $r->exstdate . '</td>';
echo '<td>' . $r->exstime . '</td>';
echo '<td>' . $r->deltype . '</td>';
echo '<td>' . $r->comments . '</td>';
echo "<td><a href='/{$update}'>Update</a></td>";
echo '</tr>';
}
$db->close();
?>
</table>
</body>
</html>