//** Check if specific record exists ****
global $conn;
$strSQLExists = "select * from _members where username='".$userdata["username"]."'";
$rsExists = db_query($strSQLExists,$conn);
$data=db_fetch_array($rsExists);
if($data)
{
echo "Name already in use, choose another username";
return false;
}
else
{
return true;
}
How do this code look, if I want to check two fields?