The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm using this code
$outcomes = $db->query_read("SELECT SUM(outcomes) FROM picks_groups"); And getting this error: Fatal error: Call to a member function query_read() on a non-object Can I not use SUM with query_read? |
#2
|
|||
|
|||
![]()
Try either
a. Putting the code global $db; before you use it. b. Use $vbulletin->db instead of $db. |
#3
|
|||
|
|||
![]()
Didn't work, I'm using this function several times in this script and it hasn't given me any problems till now.
EDIT: Never mind, I put global $db in the actual function and I no longer get the error. I no longer get any output either, but that could be due to some logic problem. Thanks. |
#4
|
|||
|
|||
![]()
Chage query_read() to query_first().
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|