Menu

Cannot inherit from undefined class db_sql

Help
Anonymous
2001-08-08
2001-08-15
  • Anonymous

    Anonymous - 2001-08-08

    I'm trying to use PHPLIB on a Win98 machine running PHP4 and MySQL and I have been unable to get past the following error on the initial index.php3 page:

    Fatal error: Class db_example: Cannot inherit from undefined class db_sql in c:\Program Files\Apache Group\Apache\php\local.inc on line 12

    Line 12 in my local.inc is simply what the default was

    Line 12 -> class DB_Example extends DB_Sql {
      var $Host     = "localhost";
      var $Database = "VCWeb";
      var $User     = "root";
      var $Password = "";
    }

    Anyone have any suggestions?

     
    • Richard Archer

      Richard Archer - 2001-08-15

      sounds like you are not including prepend.php3.

      Make sure prepend.php3 is being included and that the line:
      require($_PHPLIB["libdir"] . "db_mysql.inc");
      includes the db_mysql class.

       

Log in to post a comment.