Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No installer file


runya

Recommended Posts

Posted

I downloaded the osc zip files on two sepatarte occassions bu they both do not have any installer files, i mean the install directory. I also cannot locate the /catalog/admin/includes/configure.php file.

 

I can access the admin folder but somehow i modified the database.php file wrongly. I keep geeting the message:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/usr/www/oscommerce/admin/includes/functions/database.php on line 39

 

 

Here is how my databsase.php looks like:

<?

function tep_db_connect() {

global $db_link;

 

if (USE_PCONNECT) @$db_link = mysql_pconnect(localhost, panda, tuku);

else @$db_link = mysql_connect(localhost, panda, tuku);

 

if ($db_link) @mysql_select_db(databank_test);

return $db_link;

}

 

function tep_db_close() {

global $db_link;

 

$result = mysql_close($db_link);

 

return $result;

}

 

function tep_db_query($db_query) {

global $db_link;

 

if (STORE_DB_TRANSACTIONS) {

error_log("QUERY " . $db_query . "n", 3, STORE_PAGE_PARSE_TIME_LOG);

}

 

$result = mysql_query($db_query, $db_link);

 

if (STORE_DB_TRANSACTIONS) {

$result_error = mysql_error();

error_log("RESULT " . $result . " " . $result_error . "n", 3, STORE_PAGE_PARSE_TIME_LOG);

}

 

return $result;

}

 

function tep_db_fetch_array($db_query) {

 

$result = mysql_fetch_array($db_query);

 

return $result;

}

 

function tep_db_num_rows($db_query) {

 

$result = mysql_num_rows($db_query);

 

return $result;

}

 

function tep_db_data_seek($db_query, $row_number) {

 

$result = mysql_data_seek($db_query, $row_number);

 

return $result;

}

 

function tep_db_insert_id() {

 

$result = mysql_insert_id();

 

return $result;

}

 

function tep_db_free_result($db_query) {

 

$result = mysql_free_result($db_query);

 

return $result;

}

?>

bantunow.com - the spirit of africa

Posted

You shouldn't modify your database.php at all! :shock:

 

You have installed version 2.1.... the configuration is in application_top.php in both the catalog/includes and admin/includes folders

 

You would be far better off downloading and installing version 2.2-MS1..... it does have an install script

Archived

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

×
×
  • Create New...