I have my config file set-up like so:
When I go to my site it just shows Settings: when i try to var_dump(); it says null. Any help?
Also,
I have a security questions type thing and I want to know how to submit an array as from a series of textboxes then read, and compare them to the answers in MySQL.
Code:
<?php
session_start();
require(/*$_SERVER['DOCUMENT_ROOT']*/"/home/xxxxxx/public_html/joe_new/FileLibrary/Classes/registry.class.php");
$Registry = registry::singleton();
$Registry->storeCoreObjects();
$Registry->getObject('db')->__Connect('localhost','user',pass', 'db',false,true);
define('DB_PREFIX', 'cdev_');
$Registry->getObject('db')->ShowErrors = true;
$logged = $Registry->getObject('db')->fetchArray($Registry->getObject('db')->sqlQuery("SELECT * FROM `".DB_PREFIX."users` WHERE `username` = '$_SESSION[username]' AND `password` = '$_SESSION[password]';"));
$settings_query = $Registry->getObject('db')->sqlQuery("SELECT * FROM `".DB_PREFIX."settings` WHERE `id` = '1';");
$settings = $Registry->getObject('db')->fetchArray($settings_query);
print_r("Settings: ".$settings);
die();
?>
When I go to my site it just shows Settings: when i try to var_dump(); it says null. Any help?
Also,
I have a security questions type thing and I want to know how to submit an array as from a series of textboxes then read, and compare them to the answers in MySQL.