credo che sia cosi:

Codice PHP:
<tr><th>cognome</th><td>$riga['cognome']</td></tr>
......