Jump to content



Photo

Date & Time Not Displaying On Forum.Php & Read.Php Page

date time forum message board forum.php read.php

  • Please log in to reply
4 replies to this topic

#1 surfmad74

surfmad74

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 18 April 2012 - 1:00 PM

Hi I've created the Message Board site as per the book but for some reason the Date & Time on both the Forum.php and read.php page aren't displaying.

I've tried the supplied code as well as my own and neither work so I'm assuming it might be a php setting or MySQL setting?

I've run the site using XAMPP on my MacOSX and also on my rented server.

I don't know if it makes any difference but the php.ini file timezone is set to...

date.timezone = "Europe/London"

Can you help please, many thanks

Grant
  • 0

#2 Larry

Larry

    Administrator/Writer

  • Administrators
  • 4766 posts
  • LocationState College, PA (USA)

Posted 18 April 2012 - 3:28 PM

Are you really using the first edition of my "PHP Advanced" book? That's almost a decade old now. If not, please confirm what book you're actually using.
  • 1

#3 margaux

margaux

    Advanced Member

  • Members
  • PipPipPip
  • 453 posts

Posted 18 April 2012 - 5:03 PM

also check the format of the date - Europeans use dd/mm/yy, Americans use mm/dd/yy
  • 0

#4 surfmad74

surfmad74

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 19 April 2012 - 8:21 AM

I'm not too sure what edition it is but it was published December 2007 so I guess maybe its the third edition?

Shall I repost?
  • 0

#5 Larry

Larry

    Administrator/Writer

  • Administrators
  • 4766 posts
  • LocationState College, PA (USA)

Posted 20 April 2012 - 7:42 AM

You shouldn't repost until you know what actual book you're using. If it was the third edition, it'd say "Third Edition" on the front. How about confirming the title from the front of the book, any sign of edition, and maybe even the ISBN, to be safe?
  • 1