Eccolo :
il secondo e il terzo while invece di mettersi accanto alla lista dei valori 1 vanno sotto , perchè ?codice:<table class="table"> <tr> <th><?php $row1=$result['1']->fetch(PDO::FETCH_ASSOC); ?><?=$row1['intestazione']) ;?></th> <th><?php $row2=$result['2']->fetch(PDO::FETCH_ASSOC); ?><?=$row2['intestazione']) ;?></th> <th><?php $row3=$result['3']->fetch(PDO::FETCH_ASSOC); ?><?=$row3['intestazione']) ;?></th> </tr> <?php while ($row_1= $result['1']->fetch(PDO::FETCH_ASSOC)): ?> <tr> <td><?= $row1['valori']?></td> </tr> <?php endwhile ?> <?php while ($row_2= $result['2']->fetch(PDO::FETCH_ASSOC)): ?> <tr> <td><?= $row2['valori']?></td> </tr> <?php endwhile ?> <?php while ($row_3= $result['3']->fetch(PDO::FETCH_ASSOC)): ?> <tr> <td><?= $row3['valori']?></td> </tr> <?php endwhile ?> </table>