Changeset 924

Show
Ignore:
Timestamp:
10/03/05 02:37:35 (3 years ago)
Author:
sdcosta
Message:

Changed the error message when no mysql database exists.

I personally think gregarius should first attempt to create this database
and then fail. On some hosts you do not need to have mysql root to create
databases. Maybe after 0.5.2 so as not to repeat all the testing again.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rss/cls/db/db.mysql.php

    r856 r924  
    5050    function DBSelectDB($dbname) { 
    5151        if (!mysql_select_db($dbname)) { 
    52               die( "<h1>Error connecting to the database!</h1>\n" 
    53                      ."<p>Have you edited dbinit.php and correctly defined " 
     52              die( "<h1>Error selecting the database!</h1>\n" 
     53                     ."<p>Does your database exist?" 
     54                     . "Have you edited dbinit.php and correctly defined " 
    5455                     ."the database username and password?</p>\n" 
    5556                     ."<p>Refer to the <a href=\"INSTALL\">INSTALL</a> document "