gaogier Posted February 17, 2010 Author Share Posted February 17, 2010 Yes, I know, I have put back the old totals.inc file Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted February 17, 2010 Share Posted February 17, 2010 You have a peppering of require_once() statements opening connections to your database server. Since there is not a valid connection at the point where the mysql_query() is being executed, then it is likely that your code before that point on the page is closing the connection as well. Either make a single connection at the beginning of your application and leave it open, or you will need to remove the _once() part of the require_once() statement in that code. Repeatedly opening and closing the database connection on one page will always take more time then opening it once. Quote Link to comment Share on other sites More sharing options...
gaogier Posted February 17, 2010 Author Share Posted February 17, 2010 getting this error now Fatal error: Cannot redeclare escape_data() (previously declared in /home/gaogier/mysql_connect.php:7) in /home/gaogier/mysql_connect.php on line 13 Quote Link to comment Share on other sites More sharing options...
gaogier Posted February 17, 2010 Author Share Posted February 17, 2010 Yay, got that fixed but what dose this mean? Fatal error: Cannot redeclare escape_data3() (previously declared in /home/gaogier/mysql_connect212.php:11) in /home/gaogier/public_html/mysql_connect.php on line 23 Quote Link to comment Share on other sites More sharing options...
premiso Posted February 17, 2010 Share Posted February 17, 2010 It means that you have probably included that file before, you only need to include it once so remove the re-declaration or encase the function in a function_exists if statement to prevent it from re-declaring itself. Quote Link to comment Share on other sites More sharing options...
gaogier Posted February 17, 2010 Author Share Posted February 17, 2010 it seems the error has gone. 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.