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
|
<form action="traitement.php" method="POST">
<?php
$cdpro=$_POST['numprop'];
mysql_connect('localhost','root','') or die ('Erreur de connexion '.mysql_error());
mysql_select_db('gsi') or die ('Erreur de selection '.mysql_error());
$sql = mysql_query("SELECT numbien,titrebien FROM bien WHERE idproprio='$cdpro' ORDER BY numbien");
while ($result = mysql_fetch_array($sql) )
{
?>
<table>
<tr>
<td>
<?php echo $result['numbien'];?>
</td>
<td>
<?php echo $result['titrebien']; ?>
</td>
<td>
<input type="checkbox" name="modifier" />
</td>
<td>
<input type="checkbox" name="delete"/>
</td>
</tr>
</table>
<?php
}
mysql_close();
?>
<br/>
<br/>
<table>
<tr>
<td>
<input type="submit" name="Envoyer"/>
</td>
<td>
<input type="reset"/>
</td>
</tr>
</table>
</form> |
Partager