Created
June 20, 2012 00:23
-
-
Save DreadKnight/2957303 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$result = mysql_query('SELECT SUM(amount) AS total FROM ab_donors WHERE type="$"'); | |
$query_data = mysql_fetch_array($result); | |
$total_dollars = (float) $query_data['total']; | |
echo $total_dollars; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment