onthespot Posted August 12, 2006 Share Posted August 12, 2006 Fatal error: Cannot redeclare class mysqldb in /database.php on line 14WHAT IS GOING ON?? ITS JUST RANDOMLY DONE THIS?? I HAVENT CHANGED ANYTHING Quote Link to comment Share on other sites More sharing options...
hostfreak Posted August 12, 2006 Share Posted August 12, 2006 Post the code for the page that you are getting that error from and also post the code for database.php Quote Link to comment Share on other sites More sharing options...
onthespot Posted August 12, 2006 Author Share Posted August 12, 2006 <?/** * * * * * * * */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 usersthat is the code for database.php up until line 18 m8 Quote Link to comment Share on other sites More sharing options...
hostfreak Posted August 12, 2006 Share Posted August 12, 2006 Right, and what is the code for the page you are trying to access when you get that error? Quote Link to comment Share on other sites More sharing options...
onthespot Posted August 12, 2006 Author Share Posted August 12, 2006 <?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?> Quote Link to comment Share on other sites More sharing options...
onthespot Posted August 12, 2006 Author Share Posted August 12, 2006 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.