How To Show SUM(column) Values in PHP mysqli

$sql = "SELECT SUM(tools_page_views) AS value_sum FROM tools";


$result = mysqli_query($conn, $sql);


$row=mysqli_fetch_array($result);


echo $row['value_sum'];



Post a Comment

0 Comments