Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

image_popup.php not showing images


Graveyard666

Recommended Posts

Here is my code below, I know where my problem is but I don't know how to fix it..

 

It only shows pictures when the p.products_status = '1' but I need it to show pictures when the status is ANY of these numbers: 0,1,2,3,4 I use 5 status IDs on my site and all 5 are ESSENTIAL to my business any ideas how to make this work??

 

 

  $products_query = tep_db_query("select pd.products_name, p.products_image, p.products_price, p.manufacturers_id from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'");
 $products = tep_db_fetch_array($products_query);

 $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
 $product_check = tep_db_fetch_array($product_check_query);

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...