All pastes #593970 Raw Edit

baalwww

public text v1 · immutable
#593970 ·published 2007-06-28 17:17 UTC
rendered paste body
    $new_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);
  }
  $row = 0;
  $col = 0;
?>
				<!-- <table border="0" cellspacing="0" cellpadding="0">
				  <tr><td><?=//tep_image(DIR_WS_IMAGES.'m11.jpg')?><?=//tep_image(DIR_WS_IMAGES.'m12.gif')?></td></tr>
				 </table>  -->
				 <table border="0" cellspacing="0" cellpadding="0">
			  <tr><td height="34" width="529" bgcolor="#eeb5f9">&nbsp;&nbsp;<?=//tep_image(DIR_WS_IMAGES.'m22.gif','','','','style="margin-left:12px;"')?> &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<span class="tx3"><?=HEADING_TITLE?></span></td></tr>			  
			  <tr><td>
			       <table border="0" cellspacing="0" cellpadding="0" width="500" align="center">