$sql="select count(*) as amount from login ";
$result = mysql_query($sql);
$row = mysql_fetch_row($result);
$amount = $row['amount'];
echo "用户总数:".$amount;
$sql="select username,email from login ";
$query=mysql_query($sql);
$i=0;
while($rs=mysql_fetch_array($query))
{
echo $i.$rs['username']." ";
echo $rs['email']."<br>";
$i++;
}
echo "用户总数:".$i;