In the db_mysql.php4 file I had to include the following code:
$database = "";
include("../../../mysql/db_connect.inc");
db_connect() or dies("Cannot connect to $database");
But, with this setting it will not connect to the database when using the admin functions in the admin subfolder as I have to ad an additional '../' to direct it to the correct folder. So I have to go in and change that to use my admin functions, but that make the bulletin board in the directory above the admin directory unable to connect to the database.
I added the above lines, since my webhosting company said it had to be done and it was unable to connect without doing so. It seems the extend of my web host's php knowledge does not include coding.
Brooks
$database = "";
include("../../../mysql/db_connect.inc");
db_connect() or dies("Cannot connect to $database");
But, with this setting it will not connect to the database when using the admin functions in the admin subfolder as I have to ad an additional '../' to direct it to the correct folder. So I have to go in and change that to use my admin functions, but that make the bulletin board in the directory above the admin directory unable to connect to the database.
I added the above lines, since my webhosting company said it had to be done and it was unable to connect without doing so. It seems the extend of my web host's php knowledge does not include coding.
Brooks
Comment