<?php
$codeTheme=$_GET['codeTheme']; if (! is_numeric($codeTheme)) exit(); include("fotoweb77.php");  $queryTheme = "SELECT repertoire FROM theme WHERE codeTheme='$codeTheme'"; $resultTheme = mysql_query ($queryTheme) or die ("La requête de sélection du theme a échoué"); $lineTheme = mysql_fetch_row($resultTheme); $rep = $lineTheme[0]; mysql_free_result($resultTheme); echo "<html>"; echo "<head>"; echo 	"<link rel='stylesheet' href='ergonomie/style.css'>"; echo 	"<script language='javascript' src='script/script.js'></script>"; echo "</head>"; echo "<body>"; echo "<br><br>"; echo 	"<center>"; $imgAccueil = "../".$rep."/accueil.jpg"; if (file_exists($imgAccueil)) echo "<img src='$imgAccueil' ><br><br>"; echo 	"</center>"; ?> </center> </body> </html> 