The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
First off, this isn't vBulletin related, but this is the most active/helpful/nice/php 'n' mySQL knowledgable forum around, so I thought I'd post my question here.
I'm trying to write my own news management script. But for the most part that's irrelevant to my problem. Okay, here's my problem. I'm using this as a Database Class. PHP Code:
(Also, above it, at the very top are these ![]() PHP Code:
Now, if I scrap the idea of a class, and remove the code form the functions, it'll connect/select/query fine. But I want it to be in a class. However, after I set up the class, when I use this code: PHP Code:
Quote:
PHP Code:
|
#2
|
|||
|
|||
![]()
Did you ever contruct a DB_SITE object?
|
#3
|
||||
|
||||
![]()
Huh? Isn't
PHP Code:
|
#4
|
||||
|
||||
![]()
EDIT: Fixed this problem. Stay tuned for more. *sigh*
NOTE: Okay, I created a new thingamajig, now I need to: make a "fetch_array" function. I tried, using this code: PHP Code:
Then, I use this: PHP Code:
Then I run it, and get this error: Quote:
"Supplied argument is not a valid mysql result resource." Lines 60-76: PHP Code:
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|