$sql=mysql_query("SELECT SUM(vistos) AS suma FROM mi_tabla"); $row=mysql_fetch_array($sql); echo $row['suma'];