The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Why mysql_result()?
Last night I was working on making it possible to display the total smilie count on forumhome, and I came up with this code:
PHP Code:
Eventually, I figured out that I had to change it to this... PHP Code:
|
#2
|
|||
|
|||
Change to the following:
PHP Code:
And the answer to the "why" question is simple. $DB_site->query will only prepair a cursor to a query statement, it will not retrieve any records. You will either have to build a loop to retrieve all records after that, or use query_first. |
#3
|
||||
|
||||
Ah, I see. Thanks Marco.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|