Re: [phpslash-users] Cannot inherit from undefined class db_sql
Brought to you by:
joestewart,
nhruby
From: Joe S. <jo...@cm...> - 2002-05-05 14:52:10
|
Like Lars said, you're not getting the calling the phplib class files. It could be prepend.php3 isn't getting included/required. You might try this - Look for a line something like this at the top of config.php3: //require('/home/nathan/webDevel/phplib-7.2c/php/prepend.php3'); Try uncommenting and setting the correct path there. You probably should load test.php3 to see if there is any other settings that need changing. After getting this figured out, you might try the newer version. Joe On Sat, May 04, 2002 at 02:17:17PM -0700, Ian Hawkins wrote: > Adi, > Thanks for the advice; I got phplib up and running. > > However, I'm now getting the following error from > phpslash when I try to run > .../public_html/phpslash/index.php3 > > Fatal error: Class slashdb: Cannot inherit from > undefined class db_sql in > /home/brighthu/public_html/phpslash/config.php3 on > line 75 > > The line looks like this: > > // 2.1) PHPLIB DB Class extension > > > class slashDB extends DB_Sql { > > // Don't change $classname unless you know what > you're doing. > var $classname="slashDB"; > > /**** Remember to change the below items to match > your db *****/ > var $Host = "localhost"; > var $Database = "user_phpslashdb"; > var $User = "user_db"; > var $Password = "passw0rd"; > > /**** End User Config > ******************************************/ > > function halt($msg) { > printf("</td></table></CENTER><b>Database > error:</b><PRE>%s</PRE><br>\n", $msg); > printf("<b>MySQL Error</b>: %s (%s)<br>\n", > $this->Errno, $this->Error); > printf("Please contact the webmaster and report > the "); > printf("exact error message.<br>\n"); > die("Session halted."); > } > > } > |