Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Database Error :(


xpcpro

Recommended Posts

I install succesfully the osCommere and it is says me this error:

 

 

Parse error: syntax error, unexpected '.', expecting ')' in /mounted-storage/home54b/sub003/sc36405-PFVG/www/includes/functions/database.php on line 13

 

 

can you tell me the way to resolve it please?

Link to comment
Share on other sites

You have probably put in a full stop where a comma should be. If you can't find it, post lines 12, 13 and 14 of includes/functions/database.php here and someone will correct it for you.

Link to comment
Share on other sites

the lines is:

 

 

 

function tep_db_connect($server = mysql1040.servage.net, $username = statuscy1, $password = Artemis92, $database = statuscy1, $link = 'db_link') {

global $$link;

Link to comment
Share on other sites

function tep_db_connect($server = ****, $username = ****, $password = ****, $database = ****, $link = 'db_link') {

 

If I where you I would remove personal data from this line! Otherwise you could have some nasty surprises!

 

Did you edit this function? Probably did and changed it from:

function tep_db_connect($server, $username, $password, $database, $link = 'db_link') {

To the above..

 

Change it back as it was and at least the error should be gone. You will need to set this information in the configuration of osC! If more help is needed I will check, it's been a long time since osC2 (I'm now working with osC3) so I would need to look up the locations of these configurations!

 

Grtz,

 

Bloged

I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.

-- Stephen Hawking

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...