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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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.