if you are talking about a database feild, this is easy:
after you recieve a database query you must parse out the results row by row. With MySQL, what I use, this is done with the mysql_fetch_array() function, and a while or for loop if there is more than one row. Then, on each row you can add the value to a variable, ending up with the total. It would look something like this:
$sql = "SELECT points FROM users";
$q = mysql_query($sql);
$total = 0; // empty variable for total
while ($row = mysql_fetch_array($q)) {
$total = $total + $row['points'];
}
echo $total;