Files

68 lines
1.4 KiB
PHP
Executable File

<?php
session_start();
$idcateg=$HTTP_GET_VARS["idcateg"];
$idprod=$HTTP_GET_VARS["idprod"];
$idfamille=$HTTP_GET_VARS["idfamille"];
?>
<SCRIPT>
function FermeFenetre() {
window.close(); }
</SCRIPT>
<html>
<head>
<title>
Produit
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
a:link {
color: #FFFFFF;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FFFFFF;
}
a:hover {
text-decoration: underline;
color: #FFFFFF;
}
a:active {
text-decoration: none;
color: #FFFFFF;
}
-->
</style>
<link href="../style.css" rel="stylesheet" type="text/css">
</head>
<body class="bgcolor" text="white">
<?php
require("../connexion.php");
$conn = mysql_connect($host, $user, $password);
mysql_select_db($bdd) or die("Impossible d'ouvrir la base de donnee $bdd");
$requete = "select idprod,pathphotohautedef from produit where idprod='$idprod'";
$result=mysql_query($requete) or die ("Erreur SQL :$requete<br>".mysql_error()."...");
while ($ligne=mysql_fetch_row($result))
{
$idprod=$ligne[0];
$photo=$ligne[1];
}
?>
<div align=center>
<img src="../images/<?php print $photo?>" height=269 width=254/>
<br>
<FORM>
<INPUT type="button"
value="Fermer cette fenêtre"
onClick="FermeFenetre()">
</FORM>
<a href="#">Fermer la fen&ecirc;tre </a
></div>
</body>
</html>