12-31-2008, 02:07 AM
|
#14 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
Quote:
Originally Posted by Tanax
PHP Code:
// -- I can't exactly understand Tanax's Class :/ -- //
$this->configinfo = $this->dbobj
->exeQuery($this->queryformat)
->loadFetch(true,$this->queryformat);
You don't need to use $this->queryformat in your loadFetch if you've already executed the query with the exeQuery function.
Also, I think(since you're assigning the fetched results to a variable) you need to use the getFetch().
You could do like this:
PHP Code:
$this->configinfo = $this->dbobj
->exeQuery($this->queryformat)
->loadFetch(true)->getFetch();
or like this:
PHP Code:
$this->configinfo = $this->dbobj
->loadFetch(true,$this->queryformat)->getFetch();
or even like this:
PHP Code:
$this->configinfo = $this->dbobj
->getFetch(true, true, $this->queryformat);
// 1st true is because you didn't use the loadFetch.
// 2nd true is because you want assoc
// 3rd parameter is the sql
Hope you understand more now. Read my SQL thread if not! Or PM me.
|
I rewrote a lot of the code of my config class now so no need, plus you told me in a pm how to do it correctly. :P oh and you still haven't told me how to actually call the array elements. ;P
__________________
VillageIdiot can have my babbies ;d
|
|
|
|