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 Coder
    Join Date
    Jul 2012
    Posts
    10
    Thanks
    1
    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,444
    Thanks
    11
    Thanked 309 Times in 308 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
    •