salve a tutti io ho un db con una tabella e non riesco a stampare tutte le righe della tabella, io faccio questo :
	
	
	
		
Non riesco a capire perché non stampa nel tag table e non stampa tutte le righe.
Grazie mille
				
			
		Codice:
	
	<?php
include 'connect.php';
session_start();
$user=$_SESSION['username'];
$stud=$_SESSION['stud'];
//$psw=$_SESSION['password'];
?>
<html>
<head>
</head>
<body>
    Ciao <?php echo $user?> ecco la cartellina del tuo studente :
<center>
<?php 
    echo "<table align='center' border='1'>";
       
            $query="SELECT  Studenti.studente, Cartelle.Data, Cartelle.Tutor, Cartelle.Ore, Cartelle.Materia, Cartelle.Argomento, Cartelle.TipStudente, Cartelle.Valutazione FROM Anagrafica, Cartelle, Login, Studenti, Tutor, StudTut WHERE Login.User =  '$user' AND Tutor.User = Login.User AND StudTut.id_Tutor = Tutor.id_Tutor AND Cartelle.id_Studente = Studenti.id_Studente AND Anagrafica.id_studente=Studenti.id_Studente";
           
            $result = mysql_query($query);   
            $row = mysql_fetch_assoc($result);
            $num= mysql_num_rows($result);
            if(!$result)
            {
                echo"errore";
            }
         
        /*<tr>
        <td>
            Nome
        </td>
        <td>
            Data
        </td>
        <td>
            Tutor
        </td>
        <td>
            Ore
        </td>
        <td>
            Materie
        </td>
        <td>
            Argomento
        </td>
        <td>
            Andamento Studente
        </td>
        <td>
            Valutazione
        </td>
       
        </tr>
        <tr>
        */
           
                while ($stampa=mysql_fetch_array($result,MYSQL_ASSOC))
                {
                    echo "<td>";
                    echo "<tr>";
                    echo $stampa[studente];   
                    echo "</tr>";
                       
                    echo "<tr>";
                    echo $stampa[Data];   
                    echo "</tr>";
                   
                   
                    echo "<tr>";
                    echo $stampa[Tutor];   
                    echo "</tr>";
                   
                   
                    echo "<tr>";
                    echo $stampa[Ore];   
                    echo "</tr>";
                   
                   
                    echo "<tr>";
                    echo $stampa[Materie];   
                    echo "</tr>";
                   
                   
                    echo "<tr>";
                    echo $stampa[Argomento];   
                    echo "</tr>";
                   
                   
                    echo "<tr>";
                    echo $stampa[TipStudente];   
                    echo "</tr>";
                   
                   
                    echo "<tr>";
                    echo $stampa[Valutazione];   
                    echo "</tr>";
                   
                    echo "</td>";
                }
           
    echo "</table>";
    ?>
</center>
</body>
</html>Non riesco a capire perché non stampa nel tag table e non stampa tutte le righe.
Grazie mille
 
	 
	 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		