I am experiencing a strange issue. The MYSQL row 'ID' is not echoed through to another PHP page. It should for example be editrecord.php?id=1000005 and now I only get editrecord.php?id=
It's strange because it works if I link from a search member page to an edit member page but not from a search member page to a profile page even though pretty much the same code is used.
Am I missing something? This is the code...
// connect to the DB
include('includes/connect.php');
// get value of id that sent from address bar
$id=$_GET['id'];
// Retrieve data from database
$sql="SELECT * FROM Customers WHERE id='$id'";
$result=mysqli_query($con, $sql);
$rows=mysqli_fetch_array($result);
?>
<h4> Member Profile </h4>
<div class="fixed-action-btn horizontal" style="top: 110px; right: 1100px;">
<a href="editrecord.php?id=<? echo $row['id']; ?>" <a class="waves-effect waves-light btn">
<i class="large material-icons">mode_edit</i>
</a>