Pasted by on Tuesday, March 02, 2010 10:10 PM

Syntax:

											
1 <?php 2 $info_box_contents = array(); 3 $info_box_contents[] = array('text' => BOX_HEADING_BESTSELLERS); 4 5 new infoBoxHeading($info_box_contents, false, false); 6 7 $rows = 0; 8 $bestsellers_list = '<table border="0" width="100%" cellspacing="0" cellpadding="1">'; 9 $bestsellers_list = '<table border="0" width="100%" cellspacing="0" cellpadding="1">'; 10 while ($best_sellers = tep_db_fetch_array($best_sellers_query)) { 11 $rows++; 12 $bestsellers_list .= '<tr><td class="infoBoxContents" valign="top"><p>' . tep_row_number_format($rows) . '.</p></td><td class="infoBoxContents"><p><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id']) . '">' . $best_sellers['products_name'] . '</a></p></td></tr>'; 13 } 14 $bestsellers_list .= '</table>'; 15 16 $info_box_contents = array(); 17 $info_box_contents[] = array('text' => $bestsellers_list); 18 19 new infoBox($info_box_contents); 20 ?>