The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Option Data From Table
Hello, i writeing a new addon and i have a problem.
i try to load data from a ta table for an option but i cannot make it !!!! Option Code Code:
select:eval require_once(DIR . '/includes/functions_colors.php'); $options = fetch_colors_options_array(); functions_colors.php Code:
<?php error_reporting(E_ALL & ~E_NOTICE); // ###################### Fetch Colors as Options ####################### // Return Colors Options Array function fetch_colors_options_array() { global $vbulletin; $out = array(); // fetch Colors $getcolors = $db->query_read(" SELECT colorid, colorname FROM `" . TABLE_PREFIX . "colors` "); echo 'After Get'; while ($colorrow = $db->fetch_array($getcolors)) { $out["$colorrow[colorid]"] = "$colorrow[colorname]"; } return $out; } ?> Error : Fatal error: Call to a member function on a non-object in /......./......./......./......./forum/includes/functions_colors.php on line 14 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|