$result=mysql_query("select * from huiyuan where username='$username'" ,$conn)
if (mysql_num_rows($result)>0)$result仅仅是表示操作成功了,而不是返回了不为空的记录集