The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
vBulletin database class function for fetch_object ?
My SQL code is:
mysql_fetch_object($query) And I would like to query that through the vBulletin database class. How exactly would I go about doing that? Any help would be greatly appreciated. Edit: Surely there is a way to fetch an object... vbulletin 3.6 being fully object oriented php compliant and all. Edit; Nevermind... I decided to switch everything to an array format to be compatable with fetch_array. |
#2
|
|||
|
|||
You get it to work?
What's the query? |
#3
|
||||
|
||||
No. Unfortunately I do not believe vbulletin's database class supports the fetching of objects. I had to manually convert my entire object driven script to use arrays...
If anyone discovers a function in the database class... let me know but after the time I spent converting I won't be very pleased. -_- |
#4
|
|||
|
|||
Quote:
PHP Code:
|
#5
|
|||
|
|||
I think he wants to use it with vBulletin's database class - and he correct, it currently doesn't support mysql_fetch_object.
|
#6
|
|||
|
|||
I guess but christ, I wouldn't recode an entire script just to comply with vB standarts. Using mysql_fetch_object doesn't create errors or crash your database
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|