Jump to content


Photo

please help!


  • Please log in to reply
5 replies to this topic

#1 onthespot

onthespot
  • Members
  • PipPipPip
  • Advanced Member
  • 424 posts

Posted 12 August 2006 - 10:29 PM

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

#2 hostfreak

hostfreak
  • Members
  • PipPipPip
  • Advanced Member
  • 581 posts

Posted 12 August 2006 - 10:38 PM

Post the code for the page that you are getting that error from and also post the code for database.php

#3 onthespot

onthespot
  • Members
  • PipPipPip
  • Advanced Member
  • 424 posts

Posted 12 August 2006 - 10:41 PM

<?
/**
*
*
*
*
*
*
*
*/
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


#4 hostfreak

hostfreak
  • Members
  • PipPipPip
  • Advanced Member
  • 581 posts

Posted 12 August 2006 - 10:55 PM

Right, and what is the code for the page you are trying to access when you get that error?

#5 onthespot

onthespot
  • Members
  • PipPipPip
  • Advanced Member
  • 424 posts

Posted 12 August 2006 - 11:02 PM

<?
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
?>

#6 onthespot

onthespot
  • Members
  • PipPipPip
  • Advanced Member
  • 424 posts

Posted 12 August 2006 - 11:13 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users