The mysql summation function USES the example

  • 2020-06-01 11:09:11
  • OfStack

 
$sql="SELECT SUM(prise) sum from buylist where mid = '1'"; 
$ress=mysql_query($sql); 
echo $rowxiaofei=mysql_fetch_assoc($ress); 

Related articles: