prepare($requete_litt)) { $stmt->bind_param("i",$_GET[id]); $stmt->execute(); $stmt->bind_result($lien,$disparu); $stmt->fetch(); } if ($disparu=="oui") { $file=str_replace("/consulter_page.php","/document_disparu.php",$_SERVER["REQUEST_URI"]); header("Location:".$_SERVER["REMOTE_HOST"].$file); } else { header("Location:$lien"); } } elseif ($_GET[table]=='philo') { $requete_philo=" SELECT lien FROM philo WHERE id=? "; if($stmt = $cnx->prepare($requete_philo)) { $stmt->bind_param("i",$_GET[id]); $stmt->execute(); $stmt->bind_result($lien); $stmt->fetch(); } header("Location:$lien"); } ?>