I have got the query working now as it gets the ID, its not populating the fields though:
<?php
include 'DBConnect.php';
$ID = $_GET["ID"];
if(isset($_POST['submit']))
{
$ID = $_GET["ID"];
$name = $_POST['name'];
$initials = $_POST['initials'];
$password = $_POST['password'];
$email = $_POST['email'];
//$records = $conn->Execute("SELECT Name,Initials,Pass,EMail FROM WebUsers WHERE ID=$ID");
print $query;
$query->execute($query);
header("Location: Users.php");
}
//echo "SELECT Name,Initials,Pass,EMail FROM WebUsers WHERE ID=$ID";
$records = $conn->Execute("SELECT Name,Initials,Pass,EMail FROM WebUsers WHERE ID=$ID");
$fv = $records->Fields("Name");
$fv1 = $records->Fields("Initials");
$fv2 = $records->Fields("Pass");
$fv3 = $records->Fields("EMail");
?>
<a href='Users.php'>User list</a><br>
<form action="<?php echo $PHP_SELF;?>" method=POST>
<br><input type='text' name='name' value="<?php $fv->value; ?>"><br>
<br><input type='text' name='initials' value='<?php $fv1->value; ?>'><br>
<br><input type='text' name='password' value='<?php $fv2->value; ?>'><br>
<br><input type='text' name='email' value='<?php $fv3->value; ?>'><br>
<input type='submit' name='submit' value='Update'>
</form>
Cheers anyone