CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   PHP (http://www.codingforums.com/forumdisplay.php?f=6)
-   -   Img not seen using PHP (http://www.codingforums.com/showthread.php?t=285273)

dtpeutaw 01-04-2013 03:20 PM

Img not seen using PHP
 
I am fairly new to PHP and am trying to include an image on each page as my header. (I want to use PHP in the event I decide to change the image later.) However, the image does not show up on html page.

This is the html code.
<div id="header"><!-- Start of header -->
<?php include 'includes/header.php'; ?>
</div><!-- End of header -->

This is the header.php file.
<center><img src="classof74.jpg" /></center>

The image is in the same folder (includes) as the header.php file.

Please help!

tracknut 01-04-2013 03:39 PM

Quote:

Originally Posted by dtpeutaw (Post 1304037)
The image is in the same folder (includes) as the header.php file.
!

If that's the case, your image link should be:
Code:

<img src="includes/classof74.jpg" />
Dave


All times are GMT +1. The time now is 01:25 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.