Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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!

  • #2
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,138
    Thanks
    7
    Thanked 257 Times in 256 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •