Probleme de codage

lycol Messages postés 19 Date d'inscription vendredi 12 août 2005 Statut Membre Dernière intervention 21 février 2006 - 13 janv. 2006 à 22:25
cs_Anthomicro Messages postés 9433 Date d'inscription mardi 9 octobre 2001 Statut Membre Dernière intervention 13 avril 2007 - 14 janv. 2006 à 13:02
Bonjour à toutes et à tous, je désirerais savoir si qqch ne va pas avec ce code car il ne comptabilise pas les cliques:

<?
//On inclut le fichier config.php
include ("../config.php");
include ("../protection.php");

//On vérifie si le site a déjà été visité
$verification="select * from pds_bannieres_anti_triche where pseudo="$_COOKIE[pseudo_pds_ban]" and id_pub="$_GET[id_pub]"";
$sql=mysql_query($verification);
$num_rows=mysql_num_rows($sql);
if ($num_rows!=0)
{
print "<script language=javascript>window.alert ('Vous avez déjà visité ce site dans les 24 heures!!')</script>";
print "<script language=javascript>window.location="$url_script_admin//membres/partenaires.php"</script>";
break;
}

//On affiche les frames
$selection="select * from pds_bannieres_partenaires where id_pub="$_GET[id_pub]"";
$sql_selection=mysql_query($selection);
while ($a_row=mysql_fetch_assoc($sql_selection))
{
print "<frameset rows="65,*" rows="65,*" FRAMESPACING=0 BORDER=0 FRAMEBORDER="no">
<frameset rows="65,*" rows="65,*">
<frame name="main" src="$url_script_admin/compteur/haut.php?id_pub=$_GET[id_pub]" scrolling="no" marginwidth=0 marginheight=0 NORESIZE>
<frame name="compteurinit" src="compte.php" scrolling="no" marginwidth=0 marginheight=0 noresize>
</frameset>
<frame name="part" src="$a_row[url_site_pub]" marginwidth=0 marginheight=0>
<noframes>";
}
?>

2 réponses

lycol Messages postés 19 Date d'inscription vendredi 12 août 2005 Statut Membre Dernière intervention 21 février 2006
13 janv. 2006 à 22:30
En faite c'est bon merci mais ca marche que avec IE mais pas ave Firefox!! Quelqu'un pourrait me dire comment le rendre compatible avec Firefox s'il-vous-plait?

Merci
0
cs_Anthomicro Messages postés 9433 Date d'inscription mardi 9 octobre 2001 Statut Membre Dernière intervention 13 avril 2007 8
14 janv. 2006 à 13:02
Salut,

ça doit venir de ton code javascript et non PHP, oriente-toi vers le forum javascript : www.javascriptfr.com

a +

<hr size="2" width="100%"><li>Entraide, dépannage et vulgarisation informatique : Mon site de vulgarisation informatique</li><li>Codes-php.net</li>
0
Rejoignez-nous