Hello everyone,
I might have an easy problem for you, but I really couldn’t find what I did wrong.
I’m just trying to add some code into my website by using <?php include ("file"); ?>
Because I want to have it in one file so I only need to edit one file when I need to change something.
Here is my website code from the file named “index.php” (It is also saved as .php):
[code]
Live IT Helden<body>
[php]<?php include_once("analyticstracking.php") ?>[/php]
<!-- Intro afbeelding op homepage -->
<div class="heabackcolor"></div>
<!-- logo linksboven -->
<div class="logo" >
<img src="images/index_02.jpg" alt="">
</div>
<!-- alle knoppen -->
[php]<?php include 'mainmenu.php'; ?>[/php]
<!-- LiveBar -->
<center>
<div class="LiveBar">
<font color="#333333">
Live IT voor...
</font><br>
<div class="afbeeldingen">
<a href="diensten.php#Repair">
<img src="images/buttons/clean.jpg" alt="">
</a>
<a href="diensten.php#Clean">
<img src="images/buttons/pcclean.jpg" alt="">
</a>
<a href="diensten.php#Custom">
<img src="images/buttons/custompc.jpg" alt="">
</a>
<a href="diensten.php">
<img src="images/buttons/allservices.jpg" alt="">
</a>
</div>
</div>
</center>
<!-- text linkerkolom -->
<!-- bedrijfsinformatie -->
<div class="footerback">
</div>
<div class="footer">
<!-- kolom links -->
<div class="Tekstalgemeen" align="left">
<font color="#999999">
<blockquote>
Bereik ons via<br>
<a href="http://www.facebook.com/liveithelden?fref=ts" target="_blank">
<img src="images/fb.jpg">
</a>
<a href="mailto:[email protected]">
<img src="images/mail.jpg">
</a>
<a href="contact.php">
<img src="images/phone.jpg">
</a><br><br>
</blockquote>
</font>
</div>
<!-- kolom rechts -->
<div class="Tekstalgemeen" align="right">
<font color="#999999">
<blockquote>
Telefoon: 06-25308538<br>
Email:[email protected]<br>
Kvk:53722272<br>
BTW:NL850990506B01<br><br>
© 2012-2013 LIVE IT Helden<br>
</blockquote>
</font>
</div>
</div>
</body>
[/code]
Both php includes won’t work.
The file I want to include is “mainmenu.php” which is also saved as a .php file:
[code]
[/code]When I check it by reviewing the source code in Google Chrome, it shows my .php include functions are outcommented by:
[php][/php]
[php][/php]
Does anyone knows what I did wrong?
Thanks in advance!
SealRut