Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

1146 - Table 'Designs.TABLE_METHOD' doesn't exist


Brooksy

Recommended Posts

1146 - Table 'Designs.TABLE_METHOD' doesn't exist

1. I created some new tables in the database. I populated these tables. eg "method" table.

2. I defined them in the database_tables.php

ie define('TABLE_METHOD', 'method');

3. In the general.php I cloned from another example to be:

function tep_get_method($method_array = '') {

if (!is_array($method_array)) $method_array = array();

 

$method_query = tep_db_query("select method_name from " . TABLE_METHOD . " order by method_name");

while ($method = tep_db_fetch_array($method_query)) {

$method_array[] = array('id' => $method['method_id'], 'text' => $method['method_name']);

}

 

return $method_array;

}

 

4. Uploaded and tested and get these errors for all the new tables. I am inserting new search criteria in the advanced_search.php

 

Why would these tables not be recognized?

Searched through the newsgroups and no relevent help found.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...