Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Database.php, what did i have to put into "db_link?


Fi?e

Recommended Posts

Parse error: parse error, expecting `')'' in /homepages/34/d13551356/htdocs/admin/includes/functions/database.php on line 13
#

 

What did i have to add into the field with db_link???

 

Can anyone help me?

Link to comment
Share on other sites

HOW do you specify the bloody database for Catalog. My admin can connect to dbase but bloody catalog can't I even used the exact same extract that i had for admin and put it into the catalog database.php

 

SEE look here

 

heres the extract from my admin/includes/functions/database.php file and catalog one

 

Admin one:

 

<?

function tep_db_connect() {

global $db_link;

 

if (USE_PCONNECT) @$db_link = mysql_pconnect(gamma, gamma, );

else @$db_link = mysql_connect(gamma, gamma, );

 

if ($db_link) @mysql_select_db(gamma);

return $db_link;

}

 

function tep_db_close() {

global $db_link;

 

$result = mysql_close($db_link);

 

return $result;

 

For catalog I copied that exact same extract into the database.php file there and it still say cannot connect. Am I doing something wrong here?

 

Secondly, really newbie question but um whats the default admin login password and username?

 

Thirdly. Is there an import function to import the product list from a csv file?

Link to comment
Share on other sites

HOW do you specify the bloody database for Catalog. My admin can connect to dbase but bloody catalog can't I even used the exact same extract that i had for admin and put it into the catalog database.php

 

it's NOT ALLWED to CROSS POST !!!

 

READ the FAQ / Rules

 

use your imagination, read the answer i gave you in your other thread that the same information contains as this one !!!

Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Link to comment
Share on other sites

Hi,

the error messag will be show when i want to visit the admin area.

It is the first installation of the files, so i dont know whats the error.

I really dont know what to put into the field db_link in row 13.

The other fields in this row are ok.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...