1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| function sonde()
{
$debut=mysql_connect("127.0.0.1","root","");
mysql_select_db("triticum");
$id=$_POST['id1'];
$ligne=mysql_query ("SELECT * FROM sondes WHERE IdGene=".$id."") or die (mysql_error());
echo "".$id."<br>";
echo "<table align=\"center\" width=\"90%\">";
if($resultat=mysql_fetch_array($ligne)){
echo "<tr><td>".$resultat['IdSonde1']."</td><td>".$resultat['SeqSonde1']."</td></tr><tr><td>".$resultat['IdSonde2']."</td><td>".$resultat['SeqSonde2']."</td></tr><tr><td>".$resultat['IdSonde3']."</td><td>".$resultat['SeqSonde3']."</td></tr>";
}
echo "</table>";
mysql_close($debut);
if(mysql_error() == "")
{
header('Location: ../accueil.php?action=sondeBdd&RET=TRUE');
}
} |