I am trying to get the sum of a whole column but it's not working.
What should i change in my code .
//error -> Warning: mysql_fetch_assoc() expects parameter 1 to be resource,
<?php
include("connect2.php");
$value = mysql_query("SELECT SUM(total) AS sum_total * FROM `posts` ") ;
$row = mysql_fetch_assoc($value);
$sum_total = $row['sum_total'];
?>
<div>
<a>
<?php echo $sum_total; ?>
</a>
</div>
AS sum_total *what is*for?