How to fetch a sum from database

前端 未结 0 775
北恋
北恋 2021-01-23 01:29

I have next code:

$views = mysqli_query($conn, "SELECT SUM(`views`) FROM `Beats` WHERE `author_id` = \'$uid\' ");
$views1 = mysqli_fetch_assoc($views);
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题