Changeset 200 for trunk

Show
Ignore:
Timestamp:
09/21/05 15:43:56 (4 years ago)
Author:
anti
Message:

fix for ticket #80, mysql_connect(,,) does not fail, which comes

as a complete surprise to me. adding mysql_select_db() to the check
seems to fix it

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/_install.php

    r193 r200  
    88if (file_exists("plog-config.php")) { 
    99        require_once("plog-config.php"); 
    10         if (@mysql_connect(PLOGGER_DB_HOST,PLOGGER_DB_USER,PLOGGER_DB_PW)) { 
     10        if (    @mysql_connect(PLOGGER_DB_HOST,PLOGGER_DB_USER,PLOGGER_DB_PW) && 
     11                @mysql_select_db(PLOGGER_DB_NAME)) { 
    1112                die("Plogger has already been installed!"); 
    1213        };