$zzhichu = $conn->query( "select sum(money) as total_money from record where usernameid='$usernameid'");
$result = mysql_fetch_assoc($zzhichu);
echo $result['total_money']; 希望能够帮助你,望采纳,O(∩_∩)O谢谢
$zzhichu = $conn->query( "select sum(money) as total_money from record where usernameid='$usernameid'");
$result = mysql_fetch_assoc($zzhichu);
echo $result['total_money'];
打印到页面用echo即可。