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
|
<?php
include('connexion.php');
//création de la requête SQL
$sql = "SELECT * FROM `operations` WHERE `id_ope`=1";
//exécution de la requête SQL
$requete = @mysql_query( $sql, $link ) or die( $sql . "<br>" . mysql_error() );
echo "<table width=100% border=2>";
echo "<tr>";
echo "<td width=10%><center>N°</center></td>";
echo "<td width=80%><center>Description</center></td>";
echo "<td width=10%><center></center></td>";
echo "</tr>";
while ($tab = mysql_fetch_array($requete))
{
echo "<tr>";
echo "<td width=10%><center>".$tab['id_ope']."</center></td>";
echo "<td width=80%><a href=\"operations/operation (1).php?nom=".$tab['description_ope']."\" target=\"_blank\">". $tab['description_ope']."</a></td>";
echo "<td width=10%><center><input type=\"checkbox\" name=\"id_cont\" value=\"1\" /></center></td>";
echo "</tr>";
}
?>
<?php
include('connexion.php');
//création de la requête SQL
$sql = "SELECT * FROM `operations` WHERE `id_ope`=2";
//exécution de la requête SQL
$requete = @mysql_query( $sql, $link ) or die( $sql . "<br>" . mysql_error() );
while ($tab = mysql_fetch_array($requete))
{
echo "<tr>";
echo "<td width=10%><center>".$tab['id_ope']."</center></td>";
echo "<td width=80%><a href=\"operations/operation (2).php?nom=".$tab['description_ope']."\" target=\"_blank\">".$tab['description_ope']."</a></td>";
echo "<td width=10%><center><input type=\"checkbox\" name=\"id_cont\" value=\"1\" /></center></td>";
echo "</tr>";
}
?> |
Partager