unknown column field list
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> if (empty($username)) {$error[]='Username cannot be empty.';} $query='select user_name from user where user_name="' . $username . '"'; $result=mysql_query($query) or die(mysql_error($db)); if (mysql_num_rows($result)>0) {$error[]='Username has already been used.'; $username='';}