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
   |  
<html>
<head>
<style>a:hover {color:#FFFFFF}</style>
</head>
<body bgcolor="#F3E0B4" link="#000000" alink="#000000" vlink="#000000">
<br>
<br>
<center>
<?php
	$connect=mysql_connect("***","***","***");
	$choix_db=mysql_select_db("***");
 
	$select="SELECT num_sym FROM symptome WHERE nom_sym='$_POST[nom]'";
	$res=mysql_query($select);
	$row=mysql_fetch_row($res);
	$nb=mysql_num_rows($res);
 
	if ($nb==0)
	{
		echo "L'état <b>$_POST[nom]</b> n'existe pas<br>";
		if (isset($_GET["cons"]))
		{
			echo "Cliquez <a href=\"consultation.php\" target=\"main\">ici</a> pour retourner à la page de consultation.";
		}
		else
		{
			echo "Cliquez <a href=\"searchsympt.php\" target=\"_self\">ici</a> pour effectuer une nouvelle recherche.";
		}
	}
	else
	{
		if (isset($_GET["cons"]))
		{
			header("location:consultation.php?num=$row[0]");
		}
		else
		{
			header("location:searchsympt.php?num=$row[0]");
		}
	}
?>
</center>
</body>
</html> | 
Partager