Just do something like this:
Code:
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['userID'] . "</td>";
echo "<td>" . $row['FirstName'] . "</td>";
echo "<td>" . $row['Surname'] . "</td>";
echo "<td>" . $row['Email'] . "</td>";
echo "<td>" . "<a href='delete.php?id=".$row['userID']."'>Delete</a>" . "</td>";
echo "</tr>";
}
echo "</table>";
And then in delete.php file just remove a record that has this "userID" that you will take from your url like this:
Code:
if($_GET['id'] != ""){
$userID = $_GET['id'];
$sql = "DELETE FROM table_name WHERE userID='".$userID."'";
$query = mysql_query($sql);
}