![]() |
how can i grab connection settings from config.php
im trying to get info from my config file and put it into a var for the script im trying to use
Code:
// Load the database settings into $VAR; can i put like Code:
$VAR["db_name"] = $dbname; Code:
Notice: Undefined variable: dbname in /home/user/public_html/forum/to/my/script/dir/vb3.inc.php on line 34 (vb 3.6.1) |
Try $config['Database']['dbname'] rather than $dbname.
|
sweet thank you, it worked like a charm:)
Code:
// Load the database settings into $VAR; |
All times are GMT. The time now is 07:05 AM. |
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:
|