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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
<table border="1" class="123">
<tr>
<td width="100px">colone1</td>
<td width="100px">colone2</td>
</tr>
<tr>
<?php
$requete="SELECT * FROM table1 WHERE id_clients='$id_clients'";
$resultat=mysql_query($requete);
$nombre=mysql_num_rows($resultat);
for($i=0;$i<$nombre;$i++)
{
$champ1=mysql_result($resultat,$i,"champ1");
$champ2=mysql_result($resultat,$i,"champ2");
}
echo "<form name='modifier' method='POST' action='../action/modification.php?type=1&contrat=$champ1&client=$id_clients'>";
?>
<td><input name="type" type="text" value="<?php echo $champ1; ?>" ></td>
<td><input name="date" type="text" value="<?php echo $champ2; ?>" ></td>
</form>
</tr>
</table>
<br />
-------------------------------------
<table border="1" class="123">
<tr>
<td width="100px">colone1</td>
<td width="100px">colone2</td>
</tr>
<tr>
<?php
$requete="SELECT * FROM table2 WHERE id_clients='$id_clients'";
$resultat=mysql_query($requete);
$nombre=mysql_num_rows($resultat);
for($i=0;$i<$nombre;$i++)
{
$champ1=mysql_result($resultat,$i,"champ1");
$champ2=mysql_result($resultat,$i,"champ2");
}
echo "<form name='modifier' method='POST' action='../action/modification.php?type=1&contrat=$champ1&client=$id_clients'>";
?>
<td><input name="type" type="text" value="<?php echo $champ1; ?>" ></td>
<td><input name="date" type="text" value="<?php echo $champ2; ?>" ></td>
</form>
</tr>
</table>
<br /> |