What is? The config.php file and db.php In the config.php file there is an array with parameters for connecting to the database $ db ['host'] = 'localhost'; $ db ['user'] = 'zverev earring'; and so on.
In the file db.php there is a class for working with the database
Attention! Question! How do I transfer the value of the $ db array to this class? Thanks in advance!
$db['user']
but as$config['db']['user']
- zb '16