Here is examply from one of my sites.
$listing = tep_db_query($listing_split->sql_query);
while ($listing_values = tep_db_fetch_array($listing)) {
$listing_values['products_name'] = tep_get_products_name($listing_values['products_id']);
$lc_text= '<table align="left" class="newproducts1" border="0" cellpadding="2" cellspacing="0"><tr><td colspan="2">' . $listing_values['products_name'] . '</td></tr><tr><td align="left"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing_values['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td><td valign="top"><a class="wishtell" title="tell a friend" href="' . tep_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' .$new_products['products_id']) . '">' . tep_image_button('tell_a_friend_small.gif') . ' Tell a Friend</a><br><a class="wishtell" title="add to wishlist" href="' . tep_href_link(FILENAME_WISHLIST, 'products_id=' .$new_products['products_id']) . '">' . tep_image_button('wish_list_small.gif') . ' Wishlist</a><br><a class="wishtell" title="more info" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image_button('details_small.gif') . ' Details</a>';
if ($listing_values['specials_new_products_price']) {
$lc_text .= '<br><span class="price">' . $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</span></s> <span class="productSpecialPrice">' . $currencies->display_price($listing_values['specials_new_products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</span> ';
} else {
$lc_text .= '<br><span class="price">' . $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . ' </span>';
}
if (PRODUCT_LIST_BUY_NOW) {
$lc_text .= '<br><br><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing_values['products_id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', TEXT_BUY . $listing_values['products_name'] . TEXT_NOW) . '</a> </td></tr><tr><br><br></tr></table>';
}
go here to see how it looks,
http://www.mw-db.com/flowers
Edited by dblake, 27 September 2004, 20:43.