mysql求和函数使用示例
$sql="SELECTSUM(prise)sumfrombuylistwheremid='1'";$ress=mysql_query($sql);echo$rowxiaofei=mysql_fetch_assoc($ress);
求和函数
$sql="SELECTSUM(prise)sumfrombuylistwheremid='1'";$ress=mysql_query($sql);echo$rowxiaofei=mysql_fetch_assoc($ress);