The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
I wasn't sure if this is the right section to post but I'll try here...
I'm trying to make a Database query, This will be my first one, So please be nice.. ok heres what I'm trying to do.. I have a site I'm doing for a support group. I have a userfield that members can choose a number, What I need is a database query that will add-up all the numbers and give a total... Heres my failed stab at it.. Code:
$result_allweight = $DB_site->query(" SELECT * FROM " . TABLE_PREFIX . "userfield $searchclause ORDER BY field7 "); $weightcount = $DB_site->num_rows($result_allweight); btw, This code works but its only giving me the total of members not whats inside the "Field7" Table! |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|