Oppure

Loading
08/07/14 9:54
Light
Salve.
Devo integrare queste due righe:

codice:
<td align="center"> <a href="Edit_Form.php? txtid=<?php echo $tr[0];?>"><img src="Images/edit.png" alt="testo" /></a> </td>
<td align="center"><a href="Delete_Form.php? txtid=<?php echo $tr[0];?>"><img src="Images/delete.png" alt="testo" /></a></a></td>
Dentro questa(Dopo Email):

codice:
echo'<tr><td>'.$res['ID'].'</td><td>'.$res['Cognome'].'</td><td>'.$res['Nome'].'</td><td>'.$res['Azienda'].'</td><td>'.$res['Indirizzo'].'</td><td>'.$res['CAP'].'</td><td>'.$res['City'].'</td><td>'.$res['Provincia'].'</td><td>'.$res['Telefono'].'</td><td>'.$res['Cellulare'].'</td><td>'.$res['Email'].'</td></tr>';
Come posso fare? Grazie in anticipo
aaa
10/07/14 10:48
Bonny
Quindi?
aaa
29/08/14 15:03
alex1995
ciao, vuoi dire che ogni volta che visualizzi i dati vuoi visualizzare anche il form per modificarli? siccome $res è un array potresti fare qualcosa del genere:

<?php

foreach($res as $data)
{
echo'<table style="width: 100%" border="1"><tbody>'<tr><td>'.$data['ID'].'</td><td>'.$data['Cognome'].'</td><td>'.$data['Nome'].'</td><td>'.$data['Azienda'].'</td>
<td>'.$data['Indirizzo'].'</td><td>'.$data['CAP'].'</td><td>'.$data['City'].'</td><td>'.$data['Provincia'].'</td><td>'.$data['Telefono'].'</td><td>'.$data['Cellulare'].'</td><td>'.$data['Email'].'</td>
</tr>'</tbody></table>';

echo'<table style="width: 100%" border="1"><tbody><td align="center"> <a href="Edit_Form.php? txtid='.<?php echo $tr[0];?>.'"><img src="Images/edit.png" alt="testo" /></a>
</td><td align="center"><a href="Delete_Form.php? txtid='.<?php echo $tr[0];?>.'"><img src="Images/delete.png" alt="testo" /></a></a></td> </tbody></table>';
}
?>
aaa