Ciao a tutti

premetto che ancora non mastico bene il PHP poichè vengo dall'ASP, ho un problema nel creare una tabella e mettere 3 colonne affiancate per ogni rigo ma non ci riesco...

Questo è quello che ho fatto io:

Codice PHP:
    <?
        
// STAMPO TUTTE GLI ARTICOLI ATTIVI
        
$query_vet "SELECT * from tbs_articoli where priorita = 1 AND attivo = 1 order by id DESC";

            echo 
"<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\">\n";
            
$result_vet=mysql_query($query_vet$conn);
            echo 
"<tr>\n";
            
$i=0;
            while(
$row_vet=mysql_fetch_array($result_vet))
            {
            echo 
"<td height=\"180\" valign=\"top\" style=\"border:#ccc 1px solid;\"></td>\n";
            if (
$i == 3){
            echo 
"</tr>\n";
            
$i=0;
            }
            }
            echo 
"</table>\n";
    
?>
Mi date una mano?