数据库里装什么东西啊?要用OBJECT?
$rs=mysql_fetch_array($result);
echo "username:".$rs["username"]."<br>";
行不行?