No announcement yet.

database connection

  • Filter
  • Time
  • Show
Clear All
new posts

  • database connection

    In the db_mysql.php4 file I had to include the following code:

    $database = "";
    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.


  • #2
    Your host certainly doesn't seem very knowledgable...First they require .php4 extensions and then they require you to use a separate database connection file but won't provide support for it?

    I'd seriously consider switching hosts.


    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.