Posted by:
CyberSpatium
(---.hsd1.or.comcast.net)
This statement will return true if the username is taken, false if it is available. Keep the @ infront of the mysql_query statemnt, this keeps the statement from displaying an error the statement will return if if can not find a matching username
if (!@mysql_query (SELECT username FROM somedatabase WHERE username='$checkusername') {
return false;
} else {
return true;
}