1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| $tab_interlocuteur=explode(",",$sql_listing["interlocuteur"]);
$sql ="SELECT listing.interlocuteur,contacts.fixe FROM listing,contacts
WHERE listing.interlocuteur=contacts.Nom AND listing.ID=".$id;
$or="";
foreach($tab_interlocuteur AS $interlocuteur)
{
$sql .=$or." nom =\"".$interlocuteur."\"";
$or="OR";
}
$s_sql =mysql_query($sql,$link);
while($r_sql=mysql_fetch_array($s_sql));
{
?>
<h3>INTERLOCUTEUR</h3>
<input type="hidden" name="id" value="<?php echo($res['ID']) ;?>">
<table border="2" BORDERCOLOR="#0066FF" cellspacing="4" cellpadding="4">
<tr align="center">
<td>Nom</td>
<td><input type="text" name="NOM" size="30" value="<?php echo($res['interlocuteur']) ;?>"disabled></td>
</tr>
<td>telephone</td>
<td><input type="text" name="Telephone" size="40" value="<?php echo($res['fixe']) ;?>"disabled></td>
</tr>
</table>
<br/>
<?php
} |
Partager