The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
SQL Statement help - Sum - Resource ID #81
I'm coding a page in a new hack I'm building and am trying to sum a column using a where condition. Here's the code I'm using:
Code:
$pledgeamount=$vbulletin->db->query("SELECT SUM(donation_amount) from " . TABLE_PREFIX . "donations where donation_sport='$football'"); $pledge=$pledgeamount['donation_amount']; I've done hacks before for Vbulletin, but never had to use a Sum statement. Is there something special I need to do? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|