Jump to content

Archived

This topic is now archived and is closed to further replies.

onthespot

please help!

Recommended Posts

Fatal error: Cannot redeclare class mysqldb in /database.php on line 14

WHAT IS GOING ON?? ITS JUST RANDOMLY DONE THIS?? I HAVENT CHANGED ANYTHING

Share this post


Link to post
Share on other sites
Post the code for the page that you are getting that error from and also post the code for database.php

Share this post


Link to post
Share on other sites
<?
/**
*
*
*
*
*
*
*
*/
include("constants.php");
     
class MySQLDB
{
  var $connection;        //The MySQL database connection
  var $num_active_users;  //Number of active users viewing site
  var $num_active_guests;  //Number of active guests viewing site
  var $num_members;        //Number of signed-up users


that is the code for database.php up until line 18 m8

Share this post


Link to post
Share on other sites
Right, and what is the code for the page you are trying to access when you get that error?

Share this post


Link to post
Share on other sites
<?
include("include/session.php");
?>

that is on all the pages and the problem is on all pages !

then the code in session.php is

<?
class Session
{
  var $username;    //Username given on sign-up
  var $userid;      //Random value generated on current login
  var $userlevel;    //The level to which the user pertains
  var $time;        //Time user was last active (page loaded)
  var $logged_in;    //True if user is logged in, false otherwise
  var $userinfo = array();  //The array holding all user info
  var $url;          //The page url current being viewed
  var $referrer;    //Last recorded site page viewed
?>

Share this post


Link to post
Share on other sites
ok ive sorted it now, there was a problem with a page i named, and it overtook another page, in the session.php and then crashed the whole system LOL, im sorry to waste ur time bud

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.