<?php 
	if (!isset($ID)) header("Location: default.htm");
	$host = "Bibli";
	$user = "etd";
	$password = "etd";  
	$conn = odbc_connect($host,$user,$password) or die ("raté");
	$query = "Select NumPersonne, DATEDIFF(minute,GetDate(), Date_Fin) as Valide from Sessions where IDSession='ID=".$Id."'";
	$succ = odbc_exec($conn,$query);
	if (!(odbc_fetch_row($succ))) 
	{
		header("Location: default.htm");
	}
	else 
	{
		$Code=odbc_result($succ,1);
		if (odbc_result($succ,2)<0) header("Location: default.htm");
		return $Code;
	}
?>	
<html><head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
	... Code de la page ...
</body>
</html>
