<?php
session_start(); include("script_outils.php");  if (isset ($_SESSION['SESS_LOGIN']) && $_SESSION['SESS_LOGIN']== getValeurIni("monLogin")) {   if (isset($_POST['BestOf']) && $_POST['BestOf']=='on') $bestOf=1; else $bestOf=0;  $imageId=$_POST['idImage']; if (! is_numeric($imageId)) exit();   include("fotoweb77.php");   $queryInsert = "UPDATE image SET bestof='".$bestOf."' WHERE image.id='".$imageId."'"; $resultInsert = mysql_query ($queryInsert) or die ("La requête d insertion a échoué ".$queryInsert);  echo "<script language='javascript'>window.location = 'fotoweb66.html';</script>"; } ?> 