Sunday, 29 September 2013

Mysql & Php SUM function, array

Mysql & Php SUM function, array

Tried to make a script that calculate all values from a column but instead
of getting the sum of values I get "Array"
$sql = "SELECT SUM(Money) FROM players";
$result = mysql_query($sql) or die (mysql_error());
$BaniTotal = mysql_fetch_assoc($result);

No comments:

Post a Comment