Problème Wamp / IE
Fermé
LeChauve
-
1 juil. 2009 à 13:19
Dragonitro Messages postés 263 Date d'inscription mercredi 26 novembre 2008 Statut Membre Dernière intervention 15 juin 2010 - 2 juil. 2009 à 17:52
Dragonitro Messages postés 263 Date d'inscription mercredi 26 novembre 2008 Statut Membre Dernière intervention 15 juin 2010 - 2 juil. 2009 à 17:52
A voir également:
- Problème Wamp / IE
- Wamp server - Télécharger - Divers Web & Internet
- Ie tab - Télécharger - Outils pour navigateurs
- Ie 11 - Télécharger - Navigateurs
- Wamp orange ✓ - Forum Webmastering
- Ie 9 - Télécharger - Navigateurs
6 réponses
Dragonitro
Messages postés
263
Date d'inscription
mercredi 26 novembre 2008
Statut
Membre
Dernière intervention
15 juin 2010
32
1 juil. 2009 à 13:51
1 juil. 2009 à 13:51
As-tu terminé ta connection à MySQL par :
mysql_close(); // Déconnexion de MySQL ?>
Désolé pour le double post...
Je comprends pas car mes autres pages PHP, dans lesquelles il y a aussi connexions à la bdd, marchent...
Par contre dans ma page d'accueil il y a une include, le problème vient peut-être de là ?
Je comprends pas car mes autres pages PHP, dans lesquelles il y a aussi connexions à la bdd, marchent...
Par contre dans ma page d'accueil il y a une include, le problème vient peut-être de là ?
Dragonitro
Messages postés
263
Date d'inscription
mercredi 26 novembre 2008
Statut
Membre
Dernière intervention
15 juin 2010
32
1 juil. 2009 à 17:26
1 juil. 2009 à 17:26
Envoi ton code en entier que je puis l'étudier, stp
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
Vois ci-dessous ^^
Rien ne s'affiche sur IE dès que j'ajoute la connexion à MySQL. J'ai déplacé plusieurs fois le code de connexion au tout début, juste avant la première requête PHP, ça veut rien savoir. Et dans l'include j'ai pas mis de connexion ni de déconnexion vu qu'il y a déjà avant et après dans cette page.
Et sur mozilla ça marche très bien.
Bref voici :
-------------------------------------
<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>Bienvenue </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<link rel="stylesheet" media="screen" type="text/css" title="indexdesign" href="indexdesign.css"/>
<link rel=" shortcut icon" type="image/png" href="faviconn.png" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" media="screen" href="design.css">
<![endif]-->
</head>
<meta name="title" content="Monsite"/>
<script language="javascript" type="text/javascript">
<!--
function GetId(id)
{
return document.getElementById(id);
}
var i=false;
function move(e) {
if(i) {
if (navigator.appName!="Microsoft Internet Explorer") {
GetId("curseur").style.left=e.pageX + 5+"px";
GetId("curseur").style.top=e.pageY + 10+"px";
}
else {
if(document.documentElement.clientWidth>0) {
GetId("curseur").style.left=20+event.x+document.documentElement.scrollLeft+"px";
GetId("curseur").style.top=10+event.y+document.documentElement.scrollTop+"px";
}
else {
GetId("curseur").style.left=20+event.x+document.body.scrollLeft+"px";
GetId("curseur").style.top=10+event.y+document.body.scrollTop+"px";
}
}
}
}
function montre(text) {
if(i==false) {
GetId("curseur").style.visibility="visible";
GetId("curseur").innerHTML = text;
i=true;
}
}
function cache() {
if(i==true) {
GetId("curseur").style.visibility="hidden";
i=false;
}
}
document.onmousemove=move;
</script>
<body>
<div class="fond">
<div class="haut">
<map name="maphaut" id="maphaut">
<area shape="poly" coords="446,209,438,222,439,259,453,284,454,303,419,303,421,278,430,268,432,257,427,256,427,210,430,201,442,204,447,211,447,212,446,209" href="faq.html" onmouseover="montre('FAQ et Mode d\'emploi');" onmouseout="cache();">
<area shape="poly" coords="484,210,469,231,465,266,466,285,489,288,515,290,545,300,573,297,586,290,586,280,576,278,573,270,573,228,579,223,575,218,569,222,547,213,532,215,513,215,497,215,484,210" href="news.php" onmouseover="montre('Les News du site');" onmouseout="cache();">
<area shape="poly" coords="602,209,601,227,643,231,643,210,634,205,627,202,623,206,614,207,614,201,619,200,620,190,607,190,603,197,609,201,609,204,602,209" href="portraits.html">
<area shape="poly" coords="727,213,720,237,692,241,702,251,721,258,738,260,743,260,747,255,742,250,736,251,730,247,737,218,762,218,764,176,753,171,717,158,708,160,701,160,694,171,694,179,707,191,711,200,727,215,727,218,724,226,721,237,721,238,718,238,727,213" href="concours.html" onmouseover="montre('Concours');" onmouseout="cache();">
<area shape="poly" coords="785,220,782,238,891,241,890,218,870,217,845,216,835,213,830,207,816,206,800,208,794,209,794,217,787,218,785,220" href="bibliotheque.php" onmouseover="montre('Nouveautés');" onmouseout="cache();">
<area shape="poly" coords="883,247,889,300,781,301,782,249,788,247,793,259,813,249,830,257,840,250,851,248,867,254,871,261,878,245,885,248,885,251,883,247" href="aucuneidee.html" onmouseover="montre('???');" onmouseout="cache();">
<area shape="poly" coords="488,101,487,178,149,164,78,166,112,61,483,65,489,104,488,101" href="accueil.php" onmouseover="montre(' Page d\'Accueil');" onmouseout="cache();">
</map>
<div id="curseur" class="infobulle"></div>
<img src="haut.jpg" usemap="#maphaut" class="haut" />
</div>
<script language="javascript" type="text/javascript">
<!--
var speed = 0;
function scroll(to_scroll, no_speed_change){
if(!no_speed_change) speed = to_scroll;
if(speed !=0){
document.getElementById('scroll').scrollTop += (speed*15);
setTimeout('scroll('+to_scroll+', '+true+')', 5);
}
}
</script>
<?php
mysql_connect("localhost", "root", "");
mysql_select_db("bbdsite");
?>
<div id="scroll">
<h2>News du site</h2> <br />
<br/>
<?php
$retour = mysql_query('SELECT * FROM newsdusite WHERE type_news="news_site" AND publication="oui" ORDER BY id DESC LIMIT 0, 2');
while ($donnees = mysql_fetch_array($retour))
{
?>
<p><span class="titrenew"> <?php echo $donnees['titre'] ; ?></span> <!-- TITRE DE LA NEW --><br/>
<span class="datenew"> le <?php echo date('d/m/Y à H\hi', $donnees['timestamp']); ?></span> <!-- DATE NEW -->
</p>
<p>
<?php
// On enlève les éventuels antislash PUIS on crée les entrées en HTML
$contenu = nl2br(stripslashes($donnees['contenu']));
echo $contenu; ?> <br/><br/>
<a id="lienreactions" href="news.php?reaction=<?php echo $donnees['id'];?>"> Réagir (<?php
$infos_com = mysql_query('SELECT COUNT(*) AS nb_com FROM reactions_newsdusite WHERE idnews=' . $donnees['id']);
$donnees_com = mysql_fetch_array($infos_com);
$totalDesCommentaires = $donnees_com['nb_com'];
echo $totalDesCommentaires;
?>)<br/> </a>
</p>
<?php
}
?>
<div class="gauche">
<h2> Mon compte </h2>
<?php
include("session_espacecompte.php");
$_SESSION['points'] = $elements['pointspersos']; ?>
</div>
</div>
<div class="droite">
<map name="mapdroit" id="mapdroit">
<area shape="poly" coords="145,9,93,52,80,54,73,48,72,38,78,34,125,6,138,1,147,12,144,14,144,15,141,13,145,13,145,9" href="bibliotheque.php?recherche" onmouseover="montre('Rechercher');" onmouseout="cache();">
<area shape="poly" coords="100,75,206,80,197,69,175,63,156,51,152,30,147,40,139,49,119,62,101,68,100,75" href="membres.php" onmouseover="montre('Listes d\'Auteurs');" onmouseout="cache();">
<area shape="poly" coords="65,103,63,153,108,154,106,93,65,100,65,103" href="polar.html" alt="polar">
<area shape="poly" coords="105,86,109,156,149,154,151,93,129,93,126,84,110,84,101,94,104,94,105,86" href="romance.html" alt="romance">
<area shape="poly" coords="151,155,195,155,195,87,171,88,172,104,151,105,150,157,151,157,151,155" href="fantastique.html" alt="fantastique">
<area shape="poly" coords="196,155,224,155,224,98,221,96,196,97,196,155" href="fantasy.html" alt="fantasy">
<area shape="poly" coords="92,170,94,237,58,237,56,185,70,182,70,169,90,165,93,177,92,170" href="drame.html" alt="drame">
<area shape="poly" coords="122,236,94,236,93,173,94,169,107,170,109,185,121,186,122,236" href="sciencefiction.html" alt="science-fiction">
<area shape="poly" coords="124,235,161,234,163,167,157,164,141,165,138,177,124,177,121,186,124,235" href="humour.html" alt="humour">
<area shape="poly" coords="163,235,193,235,194,174,178,170,175,174,175,182,164,182,163,235" href="autres.html" alt="autres">
<area shape="poly" coords="194,235,222,235,225,235,226,165,215,164,215,172,203,168,196,168,194,235" href="horreur.html">
<area shape="poly" coords="186,285,186,269,163,269,157,277,143,277,139,259,129,261,114,249,108,247,108,253,88,263,77,259,73,273,95,286,116,293,183,288,187,287,186,285" href="forum.html" onmouseover="montre('Forum');" onmouseout="cache();">
<area shape="poly" coords="50,289,41,293,35,289,25,290,19,290,12,279,1,263,7,255,12,253,13,244,24,231,34,226,38,236,35,255,37,268,47,276,48,286,50,289" href="jeux.html" onmouseover="montre('Jeux');" onmouseout="cache();">
<area shape="poly" coords="119,331,122,381,80,381,82,329,119,331" href="histoiredelav.html" onmouseover="montre('Les secrets de l\'Ad Vitam');" onmouseout="cache();">
<area shape="poly" coords="116,456,100,461,91,434,17,432,18,419,54,417,73,417,88,417,86,403,98,399,109,431,114,452,114,458,116,456" href="poesie.html" alt="poesie">
<area shape="poly" coords="91,468,33,466,20,459,15,437,18,434,75,434,94,434,89,464,91,468" href="roman.html" alt="roman">
<area shape="poly" coords="20,401,20,413,88,416,85,402,20,401" href="theatre.html" alt="theatre">
<area shape="poly" coords="221,562,218,608,114,606,108,560,128,552,213,557,221,564,221,567,221,562" href="histoireslongues.html" alt="histoires longues">
<area shape="poly" coords="225,509,225,546,113,548,114,504,220,507,225,509" href="histoirescourtes.html" alt="histoires courtes">
<area shape="poly" coords="226,458,225,491,116,488,121,458,155,458,156,453,224,454,228,459,226,461,226,458" href="nouvelles.html" alt="nouvelles">
<area shape="poly" coords="58,584,86,683,0,683,0,576,35,572,51,581,60,588,60,592,58,584" href="reglement.html" onmouseover="montre('Règlement');" onmouseout="cache();">
</map>
<div id="curseur" class="infobulle"></div>
<img src="cotedroitmieux.jpg" usemap="#mapdroit" />
</div>
<a href="javascript:;" class="up" onmousedown="scroll(-1);" onmouseup="scroll(0);"><img src="scrollhaut.png" /></a>
<a href="javascript:;" class="down" onmousedown="scroll(+1);" onmouseup="scroll(0);"><img src="scrollbas.png" /></a>
<div class="copy">
© DreY 2009 <br/>
</div>
</div>
<?php mysql_close(); // Déconnexion de MySQL ?>
</body>
</html>
Rien ne s'affiche sur IE dès que j'ajoute la connexion à MySQL. J'ai déplacé plusieurs fois le code de connexion au tout début, juste avant la première requête PHP, ça veut rien savoir. Et dans l'include j'ai pas mis de connexion ni de déconnexion vu qu'il y a déjà avant et après dans cette page.
Et sur mozilla ça marche très bien.
Bref voici :
-------------------------------------
<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>Bienvenue </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<link rel="stylesheet" media="screen" type="text/css" title="indexdesign" href="indexdesign.css"/>
<link rel=" shortcut icon" type="image/png" href="faviconn.png" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" media="screen" href="design.css">
<![endif]-->
</head>
<meta name="title" content="Monsite"/>
<script language="javascript" type="text/javascript">
<!--
function GetId(id)
{
return document.getElementById(id);
}
var i=false;
function move(e) {
if(i) {
if (navigator.appName!="Microsoft Internet Explorer") {
GetId("curseur").style.left=e.pageX + 5+"px";
GetId("curseur").style.top=e.pageY + 10+"px";
}
else {
if(document.documentElement.clientWidth>0) {
GetId("curseur").style.left=20+event.x+document.documentElement.scrollLeft+"px";
GetId("curseur").style.top=10+event.y+document.documentElement.scrollTop+"px";
}
else {
GetId("curseur").style.left=20+event.x+document.body.scrollLeft+"px";
GetId("curseur").style.top=10+event.y+document.body.scrollTop+"px";
}
}
}
}
function montre(text) {
if(i==false) {
GetId("curseur").style.visibility="visible";
GetId("curseur").innerHTML = text;
i=true;
}
}
function cache() {
if(i==true) {
GetId("curseur").style.visibility="hidden";
i=false;
}
}
document.onmousemove=move;
</script>
<body>
<div class="fond">
<div class="haut">
<map name="maphaut" id="maphaut">
<area shape="poly" coords="446,209,438,222,439,259,453,284,454,303,419,303,421,278,430,268,432,257,427,256,427,210,430,201,442,204,447,211,447,212,446,209" href="faq.html" onmouseover="montre('FAQ et Mode d\'emploi');" onmouseout="cache();">
<area shape="poly" coords="484,210,469,231,465,266,466,285,489,288,515,290,545,300,573,297,586,290,586,280,576,278,573,270,573,228,579,223,575,218,569,222,547,213,532,215,513,215,497,215,484,210" href="news.php" onmouseover="montre('Les News du site');" onmouseout="cache();">
<area shape="poly" coords="602,209,601,227,643,231,643,210,634,205,627,202,623,206,614,207,614,201,619,200,620,190,607,190,603,197,609,201,609,204,602,209" href="portraits.html">
<area shape="poly" coords="727,213,720,237,692,241,702,251,721,258,738,260,743,260,747,255,742,250,736,251,730,247,737,218,762,218,764,176,753,171,717,158,708,160,701,160,694,171,694,179,707,191,711,200,727,215,727,218,724,226,721,237,721,238,718,238,727,213" href="concours.html" onmouseover="montre('Concours');" onmouseout="cache();">
<area shape="poly" coords="785,220,782,238,891,241,890,218,870,217,845,216,835,213,830,207,816,206,800,208,794,209,794,217,787,218,785,220" href="bibliotheque.php" onmouseover="montre('Nouveautés');" onmouseout="cache();">
<area shape="poly" coords="883,247,889,300,781,301,782,249,788,247,793,259,813,249,830,257,840,250,851,248,867,254,871,261,878,245,885,248,885,251,883,247" href="aucuneidee.html" onmouseover="montre('???');" onmouseout="cache();">
<area shape="poly" coords="488,101,487,178,149,164,78,166,112,61,483,65,489,104,488,101" href="accueil.php" onmouseover="montre(' Page d\'Accueil');" onmouseout="cache();">
</map>
<div id="curseur" class="infobulle"></div>
<img src="haut.jpg" usemap="#maphaut" class="haut" />
</div>
<script language="javascript" type="text/javascript">
<!--
var speed = 0;
function scroll(to_scroll, no_speed_change){
if(!no_speed_change) speed = to_scroll;
if(speed !=0){
document.getElementById('scroll').scrollTop += (speed*15);
setTimeout('scroll('+to_scroll+', '+true+')', 5);
}
}
</script>
<?php
mysql_connect("localhost", "root", "");
mysql_select_db("bbdsite");
?>
<div id="scroll">
<h2>News du site</h2> <br />
<br/>
<?php
$retour = mysql_query('SELECT * FROM newsdusite WHERE type_news="news_site" AND publication="oui" ORDER BY id DESC LIMIT 0, 2');
while ($donnees = mysql_fetch_array($retour))
{
?>
<p><span class="titrenew"> <?php echo $donnees['titre'] ; ?></span> <!-- TITRE DE LA NEW --><br/>
<span class="datenew"> le <?php echo date('d/m/Y à H\hi', $donnees['timestamp']); ?></span> <!-- DATE NEW -->
</p>
<p>
<?php
// On enlève les éventuels antislash PUIS on crée les entrées en HTML
$contenu = nl2br(stripslashes($donnees['contenu']));
echo $contenu; ?> <br/><br/>
<a id="lienreactions" href="news.php?reaction=<?php echo $donnees['id'];?>"> Réagir (<?php
$infos_com = mysql_query('SELECT COUNT(*) AS nb_com FROM reactions_newsdusite WHERE idnews=' . $donnees['id']);
$donnees_com = mysql_fetch_array($infos_com);
$totalDesCommentaires = $donnees_com['nb_com'];
echo $totalDesCommentaires;
?>)<br/> </a>
</p>
<?php
}
?>
<div class="gauche">
<h2> Mon compte </h2>
<?php
include("session_espacecompte.php");
$_SESSION['points'] = $elements['pointspersos']; ?>
</div>
</div>
<div class="droite">
<map name="mapdroit" id="mapdroit">
<area shape="poly" coords="145,9,93,52,80,54,73,48,72,38,78,34,125,6,138,1,147,12,144,14,144,15,141,13,145,13,145,9" href="bibliotheque.php?recherche" onmouseover="montre('Rechercher');" onmouseout="cache();">
<area shape="poly" coords="100,75,206,80,197,69,175,63,156,51,152,30,147,40,139,49,119,62,101,68,100,75" href="membres.php" onmouseover="montre('Listes d\'Auteurs');" onmouseout="cache();">
<area shape="poly" coords="65,103,63,153,108,154,106,93,65,100,65,103" href="polar.html" alt="polar">
<area shape="poly" coords="105,86,109,156,149,154,151,93,129,93,126,84,110,84,101,94,104,94,105,86" href="romance.html" alt="romance">
<area shape="poly" coords="151,155,195,155,195,87,171,88,172,104,151,105,150,157,151,157,151,155" href="fantastique.html" alt="fantastique">
<area shape="poly" coords="196,155,224,155,224,98,221,96,196,97,196,155" href="fantasy.html" alt="fantasy">
<area shape="poly" coords="92,170,94,237,58,237,56,185,70,182,70,169,90,165,93,177,92,170" href="drame.html" alt="drame">
<area shape="poly" coords="122,236,94,236,93,173,94,169,107,170,109,185,121,186,122,236" href="sciencefiction.html" alt="science-fiction">
<area shape="poly" coords="124,235,161,234,163,167,157,164,141,165,138,177,124,177,121,186,124,235" href="humour.html" alt="humour">
<area shape="poly" coords="163,235,193,235,194,174,178,170,175,174,175,182,164,182,163,235" href="autres.html" alt="autres">
<area shape="poly" coords="194,235,222,235,225,235,226,165,215,164,215,172,203,168,196,168,194,235" href="horreur.html">
<area shape="poly" coords="186,285,186,269,163,269,157,277,143,277,139,259,129,261,114,249,108,247,108,253,88,263,77,259,73,273,95,286,116,293,183,288,187,287,186,285" href="forum.html" onmouseover="montre('Forum');" onmouseout="cache();">
<area shape="poly" coords="50,289,41,293,35,289,25,290,19,290,12,279,1,263,7,255,12,253,13,244,24,231,34,226,38,236,35,255,37,268,47,276,48,286,50,289" href="jeux.html" onmouseover="montre('Jeux');" onmouseout="cache();">
<area shape="poly" coords="119,331,122,381,80,381,82,329,119,331" href="histoiredelav.html" onmouseover="montre('Les secrets de l\'Ad Vitam');" onmouseout="cache();">
<area shape="poly" coords="116,456,100,461,91,434,17,432,18,419,54,417,73,417,88,417,86,403,98,399,109,431,114,452,114,458,116,456" href="poesie.html" alt="poesie">
<area shape="poly" coords="91,468,33,466,20,459,15,437,18,434,75,434,94,434,89,464,91,468" href="roman.html" alt="roman">
<area shape="poly" coords="20,401,20,413,88,416,85,402,20,401" href="theatre.html" alt="theatre">
<area shape="poly" coords="221,562,218,608,114,606,108,560,128,552,213,557,221,564,221,567,221,562" href="histoireslongues.html" alt="histoires longues">
<area shape="poly" coords="225,509,225,546,113,548,114,504,220,507,225,509" href="histoirescourtes.html" alt="histoires courtes">
<area shape="poly" coords="226,458,225,491,116,488,121,458,155,458,156,453,224,454,228,459,226,461,226,458" href="nouvelles.html" alt="nouvelles">
<area shape="poly" coords="58,584,86,683,0,683,0,576,35,572,51,581,60,588,60,592,58,584" href="reglement.html" onmouseover="montre('Règlement');" onmouseout="cache();">
</map>
<div id="curseur" class="infobulle"></div>
<img src="cotedroitmieux.jpg" usemap="#mapdroit" />
</div>
<a href="javascript:;" class="up" onmousedown="scroll(-1);" onmouseup="scroll(0);"><img src="scrollhaut.png" /></a>
<a href="javascript:;" class="down" onmousedown="scroll(+1);" onmouseup="scroll(0);"><img src="scrollbas.png" /></a>
<div class="copy">
© DreY 2009 <br/>
</div>
</div>
<?php mysql_close(); // Déconnexion de MySQL ?>
</body>
</html>
Dragonitro
Messages postés
263
Date d'inscription
mercredi 26 novembre 2008
Statut
Membre
Dernière intervention
15 juin 2010
32
2 juil. 2009 à 17:52
2 juil. 2009 à 17:52
J'ai étudié ton script :
Il est parfait, il n'y a pas de bug.
Le problème vient de IE, il est en retard. Je te conseille donc de duire aux utilisateurs qui veulent utiliser ton script de passer sous Mozilla Firefox ou autre.
Il est parfait, il n'y a pas de bug.
Le problème vient de IE, il est en retard. Je te conseille donc de duire aux utilisateurs qui veulent utiliser ton script de passer sous Mozilla Firefox ou autre.