Probleme include
ChangLi
Messages postés
12
Statut
Membre
-
ChangLi Messages postés 12 Statut Membre -
ChangLi Messages postés 12 Statut Membre -
Bonjour,
J'ai un grand probleme sur le php.
Mon probleme c'est que j'ai 2 fichier foot.php que j'aimerai bien introduit dans mon index.php .
Et le probleme c'est que les images que j'ai inserer sur foot.php n'affiche pas quand je connecte le serveur (wampserver).
voici mes codes:
foot.php
et index.php
Et le resultat que je veux et comme ceci
foot.php avec css seulement
Mais pas comme celle ci
foot.php introduit dans index.php avec ces css
Lee
J'ai un grand probleme sur le php.
Mon probleme c'est que j'ai 2 fichier foot.php que j'aimerai bien introduit dans mon index.php .
Et le probleme c'est que les images que j'ai inserer sur foot.php n'affiche pas quand je connecte le serveur (wampserver).
voici mes codes:
foot.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="foot.css">
</head>
<body>
<div id="gauche">
<p>Lien rapide</p>
<a href="#">>> Acceuil</a>
<a href="#">>> Forum</a>
<a href="#">>> Actualité</a>
</div>
<div id="centrale">
<p>Images</p>
</div>
<div id="droite">
<p>Contact</p>
<a href="https://www.facebook.com/pages/Iary-Univers/258627954329229"><img src="im/facebook_icon.png" alt="lien facebook"/></a>
<a href="#"><img src="im/twitter_icon.png" alt="lien twitter"/></a>
<a href="#"><img src="im/linkedin_icon.png" alt="lien Linkedin"/></a>
<a href="#"><img src="im/gplus_icon.png" alt="lien google +"/></a>
<a href="mailto:iary.univers@gmail.com"><img src="im/email_icon.png" alt="e-mail"/></a>
</div>
</body>
</html>
et index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd]">
<html xmlns="[http://www.w3.org/1999/xhtml]">
<head>
<meta charset="utf-8"/>
<title>Iary UNIVERS</title>
<link rel="stylesheet" type="text/css" href="css/stylehome.css">
</head>
<body>
<header>
<h1>XXX</h1>
<div class="bar_nav">
<?php include_once ("elem/bar_nav.php"); ?>
<style><?php include_once ("elem/nav.css");
?></style>
</div>
</header>
<section>
<a href="#"><div class=musique>
<h2>Musique</h2>
</div></a>
<a href="#"><div class=fashion>
<h2>Collection</h2>
</div></a>
<a href="#"><div class=other>
<h2>Communication</h2>
</div></a></section>
</section>
<footer>
<div class="foot">
<?php require_once ("elem/foot.php"); ?>
<style><?php include ("elem/foot.css");
?></style>
</div>
</footer>
<div id="copyright">
<p align="center"><em>© Mikaia VALISON / 2014/ Ing GM</em></p>
</div>
</body>
</html>
Et le resultat que je veux et comme ceci
foot.php avec css seulement

Mais pas comme celle ci
foot.php introduit dans index.php avec ces css

Lee