Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-04-2013, 03:20 PM   PM User | #1
dtpeutaw
New to the CF scene

 
Join Date: Jul 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
dtpeutaw is an unknown quantity at this point
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!
dtpeutaw is offline   Reply With Quote
Old 01-04-2013, 03:39 PM   PM User | #2
tracknut
Regular Coder

 
Join Date: Aug 2006
Posts: 906
Thanks: 4
Thanked 212 Times in 211 Posts
tracknut is an unknown quantity at this point
Quote:
Originally Posted by dtpeutaw View Post
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
tracknut is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:47 AM.


Advertisement
Log in to turn off these ads.