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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Oct 2005
    Posts
    336
    Thanks
    43
    Thanked 2 Times in 2 Posts

    What HTML should I place my php include inside?

    I have a php include on my page, which is a timestamp to display when the page was last updated. It is positioned just underneath an unordered list.

    I was just wondering what html I should really place the php code in? At the moment it is inside a css styled <p> tag -
    Code:
    <p id="timestamp"><?php include("timestamp.php"); ?> </p>
    .

    As it isnt actually part of the UL I placed it in a <p> tag because when the page is uploaded there is essentialy a line of text quoting "This Page Was Last Updated On 1st November, 2008.

    Have I done right?

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    That is fine. In HTML 4 there is no date/time tag.

    There is in HTML 5, but thats the future my friend.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #3
    Regular Coder
    Join Date
    Oct 2005
    Posts
    336
    Thanks
    43
    Thanked 2 Times in 2 Posts
    Cool thanks


  •  

    Posting Permissions

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