1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| if (mysql_num_rows($contad)>0){
$ligne=0;
while ($ligne<mysql_num_rows($contad)){
$tabcontad=mysql_data_seek($contad,$ligne);
$tabcontad=mysql_fetch_array($contad,MYSQL_ASSOC);
echo $tabcontad['NomC'];
echo'<input type="hidden" name="numcontact" readonly value='.$tabcontad['NumC'].'>
<table>
<tr><td>Nom du contact</td>
<td><input type="text" name="nomcontact" readonly value='.$tabcontad['NomC'].'></td></tr>
<tr><td>Téléphone du contact</td>
<td><input type="text" name="telcontact" readonly value='.$tabcontad['TelC'].'></td></tr>
<tr><td>Fax du contact</td>
<td><input type="text" name="faxcontact" readonly value='.$tabcontad['FaxC'].'></td></tr>
<tr><td>Email du contact</td>
<td><input type="text" name="emailcontact" readonly value='.$tabcontad['EmailC'].'></td></tr>
</table>';
$ligne=$ligne+1; |