1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| <?php
$hos=new hospitalisation();
$hos->indexpat=$idd;
$hos->numserv=1;
$hos->datesortie=$_POST['Datesortie'];
$hos->dateentree=$_POST['Dateadmission'];
$query2=mysql_query($sql2 , $connect) or die(mysql_error()) ;
$sql = "select numhosp from hospitalisation where indexpat=1 and datesortie like'".$hos->datesortie."' and dateentree like '".$hos->dateentree."'";
$query1 = mysql_query($sql , $connect) or die(mysql_error()) ;
$req=mysql_fetch_row($query1);
$res=$req[0];
echo '<script type="text/javascript">
document.location.replace("http://localhost/SiteProjets/successpdf.php?id="';echo $res;'");
</script>'
;
echo "oki";
?> |
Partager