Ho ridotto il codice,
il problema rimane lo stesso e cioè creare una tabella che
inserisca i dati su righe e non su colonne.

- Attualmente si vede l'IMMAGINE e poi il TESTO.

- Io vorrei l'IMMAGINE e sotto il TESTO.




NUOVO CODICE + snello

Codice PHP:

  $list_box_contents 
= array();

  

  if (
$listing_split->number_of_rows 0) {
    
$rows 0;
    
$listing_query tep_db_query($listing_split->sql_query);
    while (
$listing tep_db_fetch_array($listing_query)) {
      
$rows++;

      if ((
$rows/2) == floor($rows/2)) {
        
$list_box_contents[] = array('params' => 'class="productListing-even"');
      } else {
        
$list_box_contents[] = array('params' => 'class="productListing-odd"');
      }

      
$cur_row sizeof($list_box_contents) - 1;



      for (
$col=0$n=sizeof($column_list); $col<$n$col++) {
        
$lc_align '';

        switch (
$column_list[$col]) {




          case 
'PRODUCT_LIST_NAME':
            
$lc_align '';
            if (isset(
$HTTP_GET_VARS['manufacturers_id'])) {
              
$lc_text '[url="' tep_href_link(FILENAME_PRODUCT_INFO'manufacturers_id=' $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' $listing['products_id']) . '"]' $listing['products_name'] .'[/url]';
            } else {
              
$lc_text 'BBB[url="' tep_href_link(FILENAME_PRODUCT_INFO, ($cPath 'cPath=' $cPath '&' '') . 'products_id=' $listing['products_id']) . '"]' $listing['products_name'] . '[/url]';
            }
            break;
            
            
            

          case 
'PRODUCT_LIST_IMAGE':
            
$lc_align 'left';
            if (isset(
$HTTP_GET_VARS['manufacturers_id'])) {
              
$lc_text '[url="' tep_href_link(FILENAME_PRODUCT_INFO'manufacturers_id=' $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' $listing['products_id']) . '"]' tep_image(DIR_WS_IMAGES $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT) . '[/url]';
            } else {
              
$lc_text '[url="' tep_href_link(FILENAME_PRODUCT_INFO, ($cPath 'cPath=' $cPath '&' '') . 'products_id=' $listing['products_id']) . '"]' tep_image(DIR_WS_IMAGES $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT) . '[/url]' '

'
;
            }
            break;

        }

        
$list_box_contents[$cur_row][] = array('align' => $lc_align,
                                               
'params' => 'class="productListing-data"',
                                               
'text'  => $lc_text);
      }
    }

    new 
productListingBox($list_box_contents);
  } else {
    
$list_box_contents = array();

    
$list_box_contents[0] = array('params' => 'class="productListing-odd"');
    
$list_box_contents[0][] = array('params' => 'class="productListing-data"',
                                   
'text' => TEXT_NO_PRODUCTS);

    new 
productListingBox($list_box_contents);
  }