mr_wombat Posted June 28, 2007 Share Posted June 28, 2007 hi all, Like a lot of people here i,m a newbie, I need help in were to put my database username and password in the admin/configure.php file, i done the includes/configure fine but this ones giving me a sore head <?php /* */ require('includes/application_top.php'); $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); if (tep_not_null($action)) { switch ($action) { case 'save': $configuration_value = tep_db_prepare_input($HTTP_POST_VARS['configuration_value']); $cID = tep_db_prepare_input($HTTP_GET_VARS['cID']); tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input($configuration_value) . "', last_modified = now() where configuration_id = '" . (int)$cID . "'"); tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $HTTP_GET_VARS['gID'] . '&cID=' . $cID)); break; } } $gID = (isset($HTTP_GET_VARS['gID'])) ? $HTTP_GET_VARS['gID'] : 1; $cfg_group_query = tep_db_query("select configuration_group_title from " . TABLE_CONFIGURATION_GROUP . " where configuration_group_id = '" . (int)$gID . "'"); $cfg_group = tep_db_fetch_array($cfg_group_query); ?> Thanks for any1 who helps...... mr_wombat.. Link to comment Share on other sites More sharing options...
oschellas Posted June 28, 2007 Share Posted June 28, 2007 You would only have to specify the database info in: catalog/includes/configure.php and in catalog/admin/includes/configure.php Link to comment Share on other sites More sharing options...
mr_wombat Posted July 2, 2007 Author Share Posted July 2, 2007 hi, thanks for that answer and you directed me fine i was looking in the wrong place lol, However i,m trying to solve a couple of other problems that hopefully someone could help, in the admin section under categories and products i get, Error: Catalog images directory does not exist: /home/webdes_/public_html/images/ along the top of the page, as far as i can see the folder is there and permissions are set at 777 also under payment methods i get no option to install modules although the modules are in there folder, also i get in database backup, Error: Backup directory does not exist. Please set this in configure.php. any help would be greatful, regards, mr_wombat..... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.