Column count doesn't match value count at row 1
mysql_query("insert into lz_members(username,password,email,adminid,groupid,timeoffset,customshow,posts,gender) value('$uid','$pwd','$mail','$lastip','0','10',9999,2,$post,$sex)") or die(mysql_error());
仔細檢查可以發現是insert into的字段與value個數不相等所選成的.