Probleme code php

Fermé
cmathias Messages postés 310 Date d'inscription vendredi 22 juin 2007 Statut Membre Dernière intervention 3 mai 2011 - 6 août 2007 à 12:48
 Alain42 - 6 août 2007 à 17:13
Bonjour j'ai téléchargé un kit graphique en php pour mon site et je rencontre quelque difficulté.
Tout d'abord il y a 4 pages php :
1-index.php
2-menu_droit.php
3-menu_gauche.php
4-page_type.php

Voila le contenu de la page index.php

<html>
<head>
<title>KIT n° 11</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#000000" text="#FFFFFF">
<table width="800" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="800" height="163" background="im/header.jpg"> </td>
</tr>
</table>



<table width="800" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="125" align="center" valign="top"><? require "menu_gauche.php" ?></td>
<td width="550" align="center" valign="top"><? require "page_type.php" ?></td>
<td width="125" align="center" valign="top"><? require "menu_droit.php" ?></td>
</tr>
</table>



<table width="800" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="800" height="62" background="im/bas.jpg">
<div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#CAAA3B">Tous
droits réservés © 2004 <a href="https://www.info.com/">Creation-Legend</a></font></div>
</td>
</tr>
</table>


</body>
</html>

et sa me donne http://heros-lunaires.2007.fr/test/kit_21a/index.php

j'ai éssayé de modifier le code et j'ai fait :

<html>
<head>
<title>KIT n° 11</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#000000" text="#FFFFFF">
<table width="800" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="800" height="163" background="im/header.jpg"> </td>
</tr>
</table>



<table width="800" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<html>
<head>
<title>KIT n° 11</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#000000" text="#FFFFFF">
<br><table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td background="im/haur_rub.jpg" width="500" height="32"></td>
</tr>
<tr>
<td background="im/fond_rub.jpg" valign="top" align="center">
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="left">
<font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif"><b>Conditions
d'utlisation :</b><br>
<br>
<img src="im/warcr.jpg" width="167" height="125" align="left">L'utilisation
de ce kit graphique est gratuite, donc il vous est formellement
interdit d'enlever ou de modifier le contenu du copyright présent
en bas de la page. Le copyright devra être présent
sur toutes les pages utilisant ce kit graphique. Ce dernier restant
la propriété exclusive de CREATIVELegend.com. En l'utilisant
vous reconnaissez avoir pris connaissance des conditions d'utilisation.<br>
Merci</font></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="im/bas_rub.jpg" width="500" height="15"></td>
</tr>
</table>
<br>
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td background="im/haur_rub.jpg" width="500" height="32"></td>
</tr>
<tr>
<td background="im/fond_rub.jpg" valign="top" align="center">
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="left"> <font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif"><b>Caractéristiques
du Kit ::</b><br>
<br>
<img src="im/warcr.jpg" width="167" height="125" align="right">Ce
kit PHP se compose de 4 pages:<br> -1 page menu gauche<br>-1 page menu droit
<br>-1 page index <br>
-1 page-type et d'un dossier image, ce qui le rend facilement modifiable.
La couleur utilisée pour le texte est #CAAA3B .</font></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="im/bas_rub.jpg" width="500" height="15"></td>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>KIT n° 11</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#000000" text="#FFFFFF">
<table width="125" border="0" cellspacing="0" cellpadding="0" align="">
<tr>
<td background="im/haut_menu.jpg" width="125" height="31">
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Menu
1</font></div>
</td>
</tr>
<tr>
<td background="im/fond_menu.jpg">

<table width="125" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
1</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
2</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
3</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
4</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
5</font></div>
</td>
</tr>
</table>


</td>
</tr>
<tr>
<td background="im/bas_menu.jpg" width="125" height="15"></td>
</tr>
</table>
<table width="125" border="0" cellspacing="0" cellpadding="0" align="">
<tr>
<td width="125" height="10" bgcolor="#000000" "></td>
</tr>
</table>

<table width="125" border="0" cellspacing="0" cellpadding="0" align="">
<tr>
<td background="im/haut_menu.jpg" width="125" height="31">
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Menu
2</font></div>
</td>
</tr>
<tr>
<td background="im/fond_menu.jpg">

<table width="125" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
1</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
2</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
3</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
4</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
5</font></div>
</td>
</tr>
</table>


</td>
</tr>
<tr>
<td background="im/bas_menu.jpg" width="125" height="15"></td>
</tr>
</table>
<table width="125" border="0" cellspacing="0" cellpadding="0" align="">
<tr>
<td width="125" height="10" bgcolor="#000000" "></td>
</tr>
</table>

<table width="125" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td background="im/haut_menu.jpg" width="125" height="31">
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Menu
3</font></div>
</td>
</tr>
<tr>
<td background="im/fond_menu.jpg">

<table width="125" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
1</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
2</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
3</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
4</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
5</font></div>
</td>
</tr>
</table>


</td>
</tr>
<tr>
<td background="im/bas_menu.jpg" width="125" height="15"></td>
</tr>
</table>

<table width="125" border="0" cellspacing="0" cellpadding="0" align="">
<tr>
<td background="im/haut_menu.jpg" width="125" height="31">
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Menu
4</font></div>
</td>
</tr>
<tr>
<td background="im/fond_menu.jpg">

<table width="125" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
1</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
2</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
3</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
4</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
5</font></div>
</td>
</tr>
</table>


</td>
</tr>
<tr>
<td background="im/bas_menu.jpg" width="125" height="15"></td>
</tr>
</table>

</body>
</html>




<html>
<head>
<title>KIT n° 11</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#000000" text="#FFFFFF">
<table width="125" border="0" cellspacing="0" cellpadding="0" align="right">
<tr>
<td background="im/haut_menu.jpg" width="125" height="31">
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Menu
5</font></div>
</td>
</tr>
<tr>
<td background="im/fond_menu.jpg">

<table width="125" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
1</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
2</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
3</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
4</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
5</font></div>
</td>
</tr>
</table>


</td>
</tr>
<tr>
<td background="im/bas_menu.jpg" width="125" height="15"></td>
</tr>
</table>
<table width="125" border="0" cellspacing="0" cellpadding="0" align="right">
<tr>
<td width="125" height="10" bgcolor="#000000" "></td>
</tr>
</table>

<table width="125" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td background="im/haut_menu.jpg" width="125" height="31">
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Menu
6</font></div>
</td>
</tr>
<tr>
<td background="im/fond_menu.jpg">

<table width="125" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
1</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
2</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
3</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
4</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
5</font></div>
</td>
</tr>
</table>


</td>
</tr>
<tr>
<td background="im/bas_menu.jpg" width="125" height="15"></td>
</tr>
</table>
<table width="125" border="0" cellspacing="0" cellpadding="0" align="right">
<tr>
<td width="125" height="10" bgcolor="#000000" "></td>
</tr>
</table>

<table width="125" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td background="im/haut_menu.jpg" width="125" height="31">
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Menu
7</font></div>
</td>
</tr>
<tr>
<td background="im/fond_menu.jpg">

<table width="125" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
1</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
2</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
3</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
4</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
5</font></div>
</td>
</tr>
</table>


</td>
</tr>
<tr>
<td background="im/bas_menu.jpg" width="125" height="15"></td>
</tr>
</table>

<table width="125" border="0" cellspacing="0" cellpadding="0" align="right">
<tr>
<td background="im/haut_menu.jpg" width="125" height="31">
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Menu
8</font></div>
</td>
</tr>
<tr>
<td background="im/fond_menu.jpg">

<table width="125" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
1</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
2</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
3</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
4</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font color="#CAAA3B" size="1" face="Verdana, Arial, Helvetica, sans-serif">Rubrique
5</font></div>
</td>
</tr>
</table>


</td>
</tr>
<tr>
<td background="im/bas_menu.jpg" width="125" height="15"></td>
</tr>
</table>

</body>
</html>



</tr>
</table>



<table width="800" border="0" cellspacing="0" cellpadding="0" align="">
<tr>
<td width="800" height="62" background="im/bas.jpg">
<div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#CAAA3B">Tous
droits réservés © 2004 <a href="https://www.info.com/">Creation-Legend</a></font></div>
</td>
</tr>
</table>


</body>
</html>

et sa me donne : http://heros-lunaires.2007.fr/test/kit_21a/index2.php

Si vous pouvier m'aide svp sa doit donné sa : http://www.graphiques-kits.com/vibratorkits/
A voir également:

1 réponse

Bizare que tu ai plusieurs fois <html> </html> <body etc.. dans la même page html

essaye en otant les "intermediaires"

ensuite il doit falloir imbriquer les tableaux

<table> </table>

sachant que tu peux mettre par exemple
<table> 
<tr><td>blabla</td></tr>
<tr><td>
<table> </table>
</td></tr>

</table>
0