![]() |
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. |
just look into db_mysql.php of vbulletin, to see how they did it :)
|
I did... but they use lots of other variables in it, defined elsewhere in the script....
|
Quote:
PHP Code:
|
Ok, thank you, it works.
Also, if you're testing to see if a statement is false, would you use PHP Code:
PHP Code:
|
if ($statement=false){
as you use just one = you'd get a problem ;) use if (!statement) { |
All times are GMT. The time now is 05:17 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|