Salut et merci encore une fois Anthomicro,
cela me donne une erreur
Warning: Cannot modify header information - headers already sent by (output started at /home/internetk/www/out.php:11) in /home/internetk/www/out.php on line 42
ma page est en fait une page de redirection, voici le code :
<HTML xml:lang="fr" xmlns="
[ Lien ]">
<body>
<style type="text/css" media="all">
#chargement{
display:none;
}
</style>
<script type="text/javascript">
document.getElementByiId('chargement').style.display='block';
function masquer_cgt()
{
document.getElementByiId('chargement').style.display='none';
}
</script>
<body onload="masquer_cgt()">
<div id="chargement">Chargement de la page en cours</div>
<?php
$page = out;
include("inc/connexion.php.inc");
include("inc/stats.php.inc");
$sql = mysql_query("SELECT url FROM NV_sites WHERE num='$idsite'");
if($data = mysql_fetch_array($sql)){
$url = $data['url'];
}
$sql2 = mysql_query("UPDATE NV_sites SET clics=clics+1 WHERE num='$idsite'");
if($url == ''){
header("Location: erreur.html");
}
else{
header("Location: ".$url."");
}
?>
</body>
</html>
joebuz