hi,
I need more pages to access the db. Currently, in every page I have specified the variables needed for the connection, like this:
$ host = 'localhost';
$ db_user = 'root';
$ pass = 'root';
$ database = 'db_pro';
However, if for example you change the password to access the db should go to each page to change this value. I tried to create a file containing connection.php these variables and then calling this file in the pages where I need using the require, but it seems not work. How can I do?
Bookmarks