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