27-05-2007, 02:07 PM
Bon on va faire un petit jeu on va jouer à trouver l'erreur
Voici un code php:
Voici un code php:
Code PHP :
<?php
<html>
<head>
<title>Corsair's War</title>
<!-- Ce design est soumis a un copyright reservé a kitgrapfik. -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- Début ImageReady Slices (Allo-design TREASURE ISLAND.psd - Design par Angel-city 14-05-2007) -->
<table width="1024" height="439" border="0" align="center" cellpadding="0" cellspacing="0" id="Tableau_01">
<tr>
<td><img src="images/index_01.gif" width="1024" height="18" alt=""></td>
</tr>
<tr>
<!-- Début table menu head (Allo-design TREASURE ISLAND.psd - Design par Angel-city 14-05-2007) -->
<td background="images/head_02.gif" width="1024" height="250" valign="top"><table width="1024" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="8"></td>
</tr>
<tr>
<td><p> <a href="index.html" class="menu1">ACCUEIL</a>
<a href="http://www.corsairswar.forumonline.biz/" class="menu1">FORUM</a>
<a href="contact.php" class="menu1">CONTACT</a>
<a href="indexadmin.php" class="menu1">ADMINISTRATION</a></p></td>
</tr>
</table></td>
<!-- Fin table menu head (Allo-design TREASURE ISLAND.psd - Design par Angel-city 14-05-2007) -->
</tr>
<tr>
<td><img src="images/index_01.gif" width="1024" height="18"></td>
</tr>
<tr>
<td><img src="images/index_04.gif" width="1024" height="3" alt=""></td>
</tr>
<tr>
<!-- Début table centre (Allo-design TREASURE ISLAND.psd - Design par Angel-city 14-05-2007) -->
<td background="images/index_06.gif" width="1024" height="128"><table width="1024" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="7" height="5"></td>
</tr>
<tr>
<td width="6"></td>
<!-- Début table menu gauche (Allo-design TREASURE ISLAND.psd - Design par Angel-city 14-05-2007) -->
<td valign="top"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/cadremenu_07.gif" width="197" height="4"></td>
</tr>
<tr>
<td background="images/cadremenu_11.gif" width="197" height="24"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30"><div align="center"><img src="images/puce_14.gif" width="12" height="12" alt=""></div></td>
<td width="132"><div align="center" class="Style1">INTRODUCTION</div></td>
<td width="35"><div align="center"><img src="images/puce_14.gif" width="12" height="12" alt=""></div></td>
</tr>
</table></td>
</tr>
<tr>
<td background="images/cadremenu_12.gif" width="197" height="14"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" height="5"></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="index.html" class="menu1">Présentattion</a></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="inscription.php" class="menu1">Inscription</a></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="faq.php" class="menu1">F.A.Q</a></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="classement.php" class="menu1">Classement</a></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="guidejeu.php" class="menu1">Guide du jeu</a></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="http://www.corsairswar.forumonline.biz/" class="menu1">Forum</a></td>
</tr>
<tr>
<td colspan="2" height="5"></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/cadremenu_17.gif" width="197" height="6"></td>
</tr>
<tr>
<td background="images/cadremenu_11.gif" width="197" height="24"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30"><div align="center"><img src="images/puce_14.gif" width="12" height="12" alt=""></div></td>
<td width="132"><div align="center" class="Style1">L'UNIVERS</div></td>
<td width="35"><div align="center"><img src="images/puce_14.gif" width="12" height="12" alt=""></div></td>
</tr>
</table></td>
</tr>
<tr>
<td background="images/cadremenu_12.gif" width="197" height="14"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" height="10"></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="chronologie.php" class="menu1">Chronologie</a></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="histoire.php" class="menu1">Histoire</a></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="classes.php" class="menu1">Classes</a></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="navires.php" class="menu1">Navires</a></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="cartes.php" class="menu1">Cartes</a></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="mers.php" class="menu1">Mers</a></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="regions.php" class="menu1">Regions</a></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="capitales.php" class="menu1">Villes</a></td>
</tr>
<tr>
<td colspan="2" height="10"></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/cadremenu_17.gif" width="197" height="6"></td>
</tr>
<tr>
<td background="images/cadremenu_11.gif" width="197" height="24"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30"><div align="center"><img src="images/puce_14.gif" width="12" height="12" alt=""></div></td>
<td width="132"><div align="center" class="Style1">AUTHENTIFICATION</div></td>
<td width="35"><div align="center"><img src="images/puce_14.gif" width="12" height="12" alt=""></div></td>
</tr>
</table></td>
</tr>
<tr>
<td background="images/cadremenu_12.gif" width="197" height="14"><div align="center"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" height="5"></td>
</tr>
<tr>
<td colspan="2"><div align="center"><table width="180" border="0" align="center" cellpadding="0" cellspacing="0">
<form action="connexion2.php" method="POST">
<tr>
<td><div align="center"><span class="Style2" align="center">Login:</span><br/>
<input type="text" name="pseudo" class="champsTexte";" style="width:140px"></div></td>
<td width="35"> </td>
</tr>
<tr>
<td><div align="center"><span class="Style2">Mot de passe:</span><br/>
<input type="password" name="password" class="champsTexte";" style="width:140px"></div></td>
<td><div align="center">
<input name="submit" type="submit" class="submit" style="width:30px" value="ok">
</div></td>
</tr>
<tr>
<td colspan="2" height="5"></td>
</tr>
</form>
</table>
</div></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="inscription.php" title="Inscription" class="menu1">S'inscrire</a></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="recuppass.php" class="menu1">Mot de passe perdu?</a></td>
</tr>
<tr>
<td width="30"><div align="center"><img src="images/puce_28.gif" width="11" height="11" alt=""></div></td>
<td width="167"> <a href="guidejeu.php" class="menu1">Guide du jeu</a></td>
</tr>
<tr>
<td colspan="2" height="5"></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td><img src="images/cadremenu_17.gif" width="197" height="6"></td>
</tr>
<tr>
<td background="images/cadremenu_11.gif" width="197" height="24"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30"><div align="center"><img src="images/puce_14.gif" width="12" height="12" alt=""></div></td>
<td width="132"><div align="center" class="Style1">PARTENAIRES</div></td>
<td width="35"><div align="center"><img src="images/puce_14.gif" width="12" height="12" alt=""></div></td>
</tr>
</table></td>
</tr>
<tr>
<td background="images/cadremenu_12.gif" width="197" height="14"><div align="center"><a href="http://www.tourdejeu.net/" class="menu1">Tour de jeu</a>
<br><a href="http://www.clicjeux.net/jeux.php" class="menu1">Clic jeux</a>
<br><a href="http://www.ogame.fr/" class="menu1">Ogame</a>
<br><a href="http://www.kitgrafik.com/" class="menu1">Kit Grafik</a>
<br><a href="http://www.jeuweb.org/" class="menu1">Créer son jeu en php</a></div></td>
</tr>
<tr>
<td><img src="images/cadremenu_23.gif" width="197" height="9"></td>
</tr>
</table></td>
<!-- Fin table menu gauche (Allo-design TREASURE ISLAND.psd - Design par Angel-city 14-05-2007) -->
<td width="6"></td>
<!-- Début table centre page (Allo-design TREASURE ISLAND.psd - Design par Angel-city 14-05-2007) -->
<td valign="top"><table width="607" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/centrecadre_09.gif" width="607" height="4"></td>
</tr>
<tr>
<td background="images/centrecadre_12.gif" width="607" height="24"><table width="607" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30"><div align="center"><img src="images/puce_14.gif" width="12" height="12" alt=""></div></td>
<td width="542"><div align="center" class="Style1">BIENVENUE SUR CORSAIR'S WAR</div></td>
<td width="35"><div align="center"><img src="images/puce_14.gif" width="12" height="12" alt=""></div></td>
</tr>
</table></td>
</tr>
<tr>
<td background="images/centrecadre_14.gif" width="607" height="14"><table width="607" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10"></td>
<td><table width="587" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="5"></td>
</tr>
<tr>
<td><div align="center"><span class="Style2">Bienvenue sur Corsair's War un rpg de piraterie par internet.
Corsair's War vous propose d'incarner deux classes de navigateurs, les Pirates et les Corsairs.
Constituer votre flotte de navires plus puissants les uns que les autres. Créer des confréries
avec les autres joueurs. Devenez le plus puissant en conquérant les mers après maintes et maintes
guerres et devenez le roi des mers.<br/>
<br/>
Pour toutes inscriptions c'est par <a href="inscription.php" >ici</a></span></div></td>
</tr>
<tr>
<td width="5"></td>
</tr>
</table></td>
<td width="10"></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/centrecadre_23.gif" width="607" height="8"></td>
</tr>
<tr>
<td height="7"></td>
</tr>
<tr>
<td><img src="images/centrecadre_09.gif" width="607" height="4"></td>
</tr>
<tr>
<td background="images/centrecadre_12.gif" width="607" height="24"><table width="607" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30"><div align="center"><img src="images/puce_14.gif" width="12" height="12" alt=""></div></td>
<td width="542"><div align="center" class="Style1">Carte</div></td>
<td width="35"><div align="center"><img src="images/puce_14.gif" width="12" height="12" alt=""></div></td>
</tr>
</table></td>
</tr>
<tr>
<td background="images/centrecadre_14.gif" width="607" height="14"><table width="607" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10"></td>
<td><table width="587" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5"></td>
</tr>
<tr>
<td><table width="168" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><span class="Style2">Le Monde et les Mers de Corsair's War
sont extrêment grands. Il y existe 4 Mers, 7 Régions ainsi que 13 capitales.
Pour plus d'informations sur le Monde de Corsair's War n'hésitez pas à venir lire
les différentes explications. Pour les Mers c'est <a href="mers.php">ici</a>,
pour les Régions c'est par <a href="regions.php">ici</a>, et enfin pour les
Capitales c'est par <a href="capitales.php">ici</a>. En ce qui concerne les
explications sur le jeu venez lire le <a href="guidejeu.php">Guide de jeu</a>.
N'oubliez pas non plus l'<a href="histoire.php">Histoire</a> de Corsair's War.
</span></div></td>
</tr>
</table></td>
<td><table width="419" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/treasure-island_30.gif" width="419" height="269"></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" height="5"></td>
</tr>
<tr>
<td width="5"></td>
<td width="5"></td>
</tr>
</table></td>
<td width="10"></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/centrecadre_23.gif" width="607" height="8"></td>
</tr>
</table></td>
<!-- Fin table centre page (Allo-design TREASURE ISLAND.psd - Design par Angel-city 14-05-2007) -->
<td width="5"></td>
<!-- Début table menu droite (Allo-design TREASURE ISLAND.psd - Design par Angel-city 14-05-2007) -->
<td valign="top"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/cadremenu_07.gif" width="197" height="4"></td>
</tr>
<tr>
<td background="images/cadremenu_11.gif" width="197" height="24"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30"><div align="center"><img src="images/puce_14.gif" width="12" height="12" alt=""></div></td>
<td width="132"><div align="center" class="Style1">DERNIERES
NEWS </div></td>
<td width="35"><div align="center"><img src="images/puce_14.gif" width="12" height="12" alt=""></div></td>
</tr>
</table></td>
</tr>
<tr>
<td background="images/cadremenu_12.gif" width="197" height="14"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15"></td>
<td><table width="180" height="387" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><marquee direction="up" width="160" height="340" scrollamount="1" scrolldelay="10" class="Style1" style="width: 160px; height: 340px" onMouseOver="this.stop()" onMouseOut="this.start()">
<p align="justify">
<span class="Style2">[26-05-2007]</span><br>
<span class="Style3">Bientôt les pré-inscriptions.
Elles seront prévues pour le 30-05-2007 au plus tard.</span></p>
<p align="justify">
<span class="Style2">[27-05-2007]</span><br>
<span class="Style3">Le Forum est en cour de construction.
La date d'ouverture vous sera communiquée plus tard.
Nous prévoyons l'ouverture dans 2 jours.</span></p>
</marquee></td>
</tr>
</table></td>
<td width="2"></td>
</tr>
</table></td>
</tr>
<tr>
<td background="images/cadremenu_12.gif" width="197" height="14"><table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" height="5"></td>
</tr>
<tr>
<tr>
<tr>
<td colspan="2" height="5"></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/cadremenu_23.gif" width="197" height="9"></td>
</tr>
</table></td>
<!-- Fin table menu droite (Allo-design TREASURE ISLAND.psd - Design par Angel-city 14-05-2007) -->
<td width="6"></td>
</tr>
<tr>
<td colspan="7" height="5"></td>
</tr>
</table></td>
<!-- Fin table centre (Allo-design TREASURE ISLAND.psd - Design par Angel-city 14-05-2007) -->
</tr>
<tr>
<td><img src="images/index_08.gif" width="1024" height="4" alt=""></td>
</tr>
<tr>
<td background="images/index_01.gif" width="1024" height="18"><div align="center"><span class="Style2">-
COPYRIGHT - 2007 -</span> <a href="#" class="menu1">HTTP://WWW.CORSAIRSWAR.OVH.ORG </a> <span class="Style2">-
ALL RIGHTS RESERVED - DESIGN PAR :</span> <a href="http://www.allo-design.com" class="menu1">ANTYOZ</a> <span class="Style2">-
SITE OPTIMISE POUR ADSL - RESOLUTION DE 1024 PIXELS -</span></div></td>
</tr>
</table>
<!-- End ImageReady Slices (Allo-design TREASURE ISLAND.psd - Design par Angel-city 14-05-2007) -->
</body>
</html>
Donc comme je vous l'ai dit je devrais insérer du php pour les news par exemple. Le problème est que quand je met une balise <?php ?>
à un endroit je doit automatiquement enregistrer le fichier avec l'extension .php et donc quand j'ouvre mon navigateur et que je vais sur le site le desgin est tout à fait décalé.
Mais comment remédier à ce problème?
Au ft Harparine sans vouloir te vexer, ta méthode je la trouve assez compliquée .
Merci pour votre aide.