[ phpopencounter-Bugs-978220 ] database name in config.php not used in mysql.php

"SourceForge.net" <[email protected]> Wed, 21 Jul 2004 09:51:04 -0700
Newsgroups gmane.comp.web.phpopentracker.devel
Message-ID <[email protected]>
Bugs item #978220, was opened at 2004-06-23 15:34
Message generated for change (Comment added) made by bergmann
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101716&aid=978220&group_id=1716

Category: None
Group: None
>Status: Deleted
Resolution: None
Priority: 5
Submitted By: Jurgen van der Vlist (perceptive)
Assigned to: Nobody/Anonymous (nobody)
Summary: database name in config.php not used in mysql.php

Initial Comment:
Using a database name other than 'phpOpenTracker' 
results in 'Could not connect to database' when i try to 
start logging.

It looks like the line in config.php: 'db_database'  
=> 'mydatabasename'
is not being used. 


When I change mysql.php line 60:
if (!$this->connection ||
        !@mysql_select_db($this->config['db_database'], 
$this->connection)) {
      return phpOpenTracker::handleError(
        'Could not connect to database.',
        E_USER_ERROR
      );
    }

into 

if (!$this->connection ||
        !@mysql_select_db('mydatabasename')) {
      return phpOpenTracker::handleError(
        'Could not connect to database.',
        E_USER_ERROR
      );
    }

it works.


----------------------------------------------------------------------

>Comment By: Sebastian Bergmann (bergmann)
Date: 2004-07-21 18:51

Message:
Logged In: YES 
user_id=7993

Please reopen in
http://developer.berlios.de/bugs/?group_id=2025.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101716&aid=978220&group_id=1716


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click