Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

knackig

Pioneers
  • Posts

    3
  • Joined

  • Last visited

Everything posted by knackig

  1. Hi bryn28, hi petlv, the solution for the "Unexpected End of File"-Problem (see petlv an his post above) ist not good. The art like you, petlv, have done it causes the problem with the broken all-news-view. I have found the problem. Please delete the second "}" (see petlv's solution) and add it instead after this code (about line 60-65): <?php if ($HTTP_GET_VARS['article'] == true) { $id = (int)tep_db_prepare_input($HTTP_GET_VARS['article']); $news_query = tep_db_query("select n.date_created, nd.name, nd.content from " . TABLE_NEWS . " n, " . TABLE_NEWS_DESC . " nd where nd.news_id = '" . (int)$id . "' and n.id = '" . (int)$id . "' and nd.language_id = '" . (int)$languages_id . "'"); $news = tep_db_fetch_array($news_query); So the right code is: <?php if ($HTTP_GET_VARS['article'] == true) { $id = (int)tep_db_prepare_input($HTTP_GET_VARS['article']); $news_query = tep_db_query("select n.date_created, nd.name, nd.content from " . TABLE_NEWS . " n, " . TABLE_NEWS_DESC . " nd where nd.news_id = '" . (int)$id . "' and n.id = '" . (int)$id . "' and nd.language_id = '" . (int)$languages_id . "'"); $news = tep_db_fetch_array($news_query); } ?> If you have any quastions, please ask... I will help you if I can ;) By the way - I hope, my english is not to bad...
  2. I would like to see an example too... Does somebody have any screenshots or links?
×
×
  • Create New...