Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

database.php


tec

Recommended Posts

hi there, I am working on a site, it has a little bit of custom work on it but not much.

Everytime i try to edit i file, say, add a css tag, or edit the width of a table, when i upload the new file, i get an error message saying

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/race2way/public_html/includes/functions/database.php:13) in /home/race2way/public_html/includes/functions/database.php on line 13

 

any thoughts?

Link to comment
Share on other sites

hi there, I am working on a site, it has a little bit of custom work on it but not much.

Everytime i try to edit i file, say, add a css tag, or edit the width of a table, when i upload the new file, i get an error message saying

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/race2way/public_html/includes/functions/database.php:13) in /home/race2way/public_html/includes/functions/database.php on line 13

 

any thoughts?

 

The call to connect to your database is performed in application_top.php, so if it is being called by any other file in the chain you'll get that sort of error. Also you might want to check that application_top itself is not being called twice. Just my thoughts.

 

Be well,

Tina

If you're not having fun you're not doing it right

 

Teach a person to fish rather than give them a loaf of bread or however that saying goes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...