#1
  1. Full Access
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    2,019
    Rep Power
    17
    OK, I want to be able to show the date in PHP. Its gonna be at the top right-hand corner of the page and it doesn't need to update every second or anything like that. It needs to be in the format: Month Date, Year, for example "July 4, 2000"

    Any ideas?
  2. #2
  3. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,642
    Rep Power
    4492
    Use the date() function.

    For the current time in the format you specified, you would use:

    echo date("F j, Y");

    Look in the manual for the explanation of the format.

    ---John Holmes
    ---www.SepodatiCreations.com
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 1999
    Posts
    114
    Rep Power
    16
  6. #4
  7. Full Access
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    2,019
    Rep Power
    17
    All done: thank you!

Similar Threads

  1. Replies: 2
    Last Post: August 18th, 2004, 10:45 PM
  2. But how do I exicute it in php to show the results?
    By Paul Knapp in forum PHP Development
    Replies: 6
    Last Post: February 10th, 2004, 11:02 AM
  3. How to show BLOB image data from PHP
    By celebx in forum PHP Development
    Replies: 1
    Last Post: January 28th, 2004, 02:05 PM
  4. PHP with UnixODBC
    By coder4hire in forum PHP Development
    Replies: 2
    Last Post: January 20th, 2004, 01:14 PM
  5. drop down php menu value wont show
    By alexmasters in forum PHP Development
    Replies: 2
    Last Post: January 19th, 2004, 05:31 AM

IMN logo majestic logo threadwatch logo seochat tools logo