<?
//assume you can code the form
$sql = "select * from usertable where username='$user' and email='$email'";
$result=mysql_query($sql, $conn) or die ("Couldn't hit the dababase.");
echo "<table>";
if (mysql_num_rows($result)==0){
echo "There are no results";
}else{
while $row=mysql_fetch_array($result){
$user=$row["username"];
$email=$row["email"];
echo "<tr><td>$user</td><td>$email</td<td>Error!</td></tr>";
}
echo "</table>";
}
?>
hth