Thanks I have made the change. However, is not returning me any records just an empty table and is not showing any error messages. Can you see where the error might be? Thanks
<?php
$sqlCommand = "SELECT * FROM useraccount WHERE Username LIKE '%Username%' OR Firstname LIKE '%Firstname%' OR Surname LIKE '%Surname%'";
$query = mysqli_query($con, $sqlCommand);
echo "<table border='1'>
<tr>
<th>Username</th>
<th>Firstname</th>
<th>Surname</th>
</tr>";
while ($row = mysqli_fetch_array($query)){
echo "<tr>";
echo"<td>" .$row['Username'] . "</td>";
echo"<td>" .$row['Firstname'] . "</td>";
echo"<td>" .$row['Surname'] . "</td>";
echo "</tr>";
}
echo"</table>";
mysqli_close($con);
?>