Salve a tutti,

sto cercando di adattare questa funzione ad un mio progetto.
Il problema mi si pone perchè i risultati della query mysql mi vengono mostrati incolonnati in verticale ed io avrei bisogno che mi siano mostrati in orizzontale, ovvero un prodotto accanto all'altro in quanto limito la query a 3 risultati.

Come posso fare? qualcuno puo' aiutarmi?...... vi posto la funzione:

Codice PHP:
function list_schede() {
    global 
$admin_vol_schedefilms_per_page$img_path$img_width$img_height$table_name$form_action_page$action_scheda$action_move;
    
    echo 
"
"
;
    echo 
"<div align=\"center\" class=\"gendefault\">[b]";
    
    
$result_main mysql_query("SELECT count(*) AS Total FROM ".$table_name);
    if (!
$result_main) {Errors("Errore durante la ricerca: ".mysql_error(), 1);}
    list(
$total_rows) = mysql_fetch_row($result_main);
    
    if (
$total_rows == 0) echo "[/b]</div>

Nessun record trovato
"
;
    else {
            
$result mysql_query("SELECT ".$table_name.".* "
                                                     
."FROM ".$table_name." "
                                                     
."WHERE vetrina = 'Si';");
            
"<tr>\n"
           
."</tr>\n";
        
$count 0;
        while (
$record mysql_fetch_array($result)) {
            if (
$count == 0$rowclass "row1";
            else 
$rowclass "row2";
            
            echo 
"<tr class=\"".$rowclass."\">\n"
                
                
."  <td align=\"center\"><a href=\"".$action_scheda."?ID_Scheda=".$record['ID_Scheda']."\">".($record['Immagine'] != "" "<img src=\"".$img_path.$record['Immagine']."\" width=\"".($img_width 4)."\" height=\"".($img_height 7)."\" border=\"0\">" "")."</td> <tr>
           </tr>"
                
."  <td align=\"center\" class = \"gendefault2\" > ".stripslashes($record['Titolo'])."</td><tr>
           </tr>"
                
."  <td align=\"center\">".stripslashes($record['Testo'])."</td><tr>
           </tr>"
                
."  <td align=\"center\">".stripslashes($record['confezione'])."</td><tr>
           </tr>"
;

           echo 
"<td align=\"center\"><a href=\"".$action_scheda."?ID_Scheda=".$record['ID_Scheda']."\"><img src=\"includes/languages/english/images/buttons/button_details.gif\" border = 0 /></td>\n";
          
"</tr>\n";
            
$count++;
        }
        echo 
"</table>";
    }
}
?> 

Grazie a tutti