cavedweller Posted May 19, 2003 Posted May 19, 2003 i followed the instructions but i cannot access the admin panel. I get the following error and i saw one other post with the same thing but no answer. 1046 - No Database Selected select configuration_key as cfgKey, configuration_value as cfgValue from configuration [TEP STOP] Any ideas as to how i can fix this? Thanks
cavedweller Posted May 19, 2003 Author Posted May 19, 2003 Heres what the configuration.php says. In line 13-29 i thought maybe it would help someone to help me figure this out. require('includes/application_top.php'); if ($HTTP_GET_VARS['action']) { switch ($HTTP_GET_VARS['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 = '" . tep_db_input($cID) . "'"); tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $HTTP_GET_VARS['gID'] . '&cID=' . $cID)); break; } } $cfg_group_query = tep_db_query("select configuration_group_title from " . TABLE_CONFIGURATION_GROUP . " where configuration_group_id = '" . $HTTP_GET_VARS['gID'] . "'"); $cfg_group = tep_db_fetch_array($cfg_group_query); ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.