@session_start(); $url=$_SERVER['QUERY_STRING']; $pos = strpos($url, "http://"); if($pos!=false){ echo""; die; } include("gestion2/connectionbd.php"); include("gestion2/mesfonctions.php"); $GLOBALS["erreur"]=false; $connections=visites(); if(isset($_GET["idvideo"])){ $mavideo=getVideoInformations($_GET["idvideo"]); $nb_lecture=$mavideo["lecture"]+1; mysql_query("UPDATE video SET lecture='$nb_lecture' WHERE idvideo='$mavideo[0]'")or die(mysql_error()); } ?> ?>