The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
help creating a fetch_array function.
Alright. I've got a DB_SITE object and DB_SITE class set up, with a working
$DB_SITE->connect(blah blah blah); I want to add a function, $DB_SITE->fetch_array, using mysql_fetch_array, however it doesn't seem to work for me. Could someone help me out? (i.e. - write a quick one?) Ironically, I've got mysql_fetch_array built into my $DB_SITE->query(); function, and it works like a charm. I'm using $DB_SITE->query_simple() to query the database without automatically putting the data into an array thingie... Thankyou. |
#2
|
||||
|
||||
just look into db_mysql.php of vbulletin, to see how they did it
|
#3
|
||||
|
||||
I did... but they use lots of other variables in it, defined elsewhere in the script....
|
#4
|
|||
|
|||
Quote:
PHP Code:
|
#5
|
||||
|
||||
Ok, thank you, it works.
Also, if you're testing to see if a statement is false, would you use PHP Code:
PHP Code:
|
#6
|
||||
|
||||
if ($statement=false){
as you use just one = you'd get a problem use if (!statement) { |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|