Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

product also seen on other categories


Recommended Posts

On products_info.php page I am trying to show the categories where the product is also seen. I am getting only one row for all products though the product is seen on various categories. What is wrong with my code?


   $catQuery = "SELECT categories_id from products_to_categories where products_id='" . (int)$HTTP_GET_VARS['products_id'] . "'";
   $CatobjQuery = tep_db_query($catQuery);
   $CatresRecords = tep_db_array($CatobjQuery);

" There are two things to aim at in life; first to get what you want, and after that to enjoy it. Only the wisest of mankind has achieved the second. " -Logan Pearsall Smith \m/

Link to comment
Share on other sites


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

  • Create New...