Forgive me for posting, because this is probably really simple, but I can't get it to work!
I'm designing the site so that each user can have their own login and password, which i have done successfully, but now i want to print the current date and time next to their greeting on the front page. I haven't learnt PHP from the basics up (fool that I am), only the bits I have needed to know.
I've tried searching the manual but can't understand how to call the current date and time into a variable and then print the variable. Yes, I am a buffoon! Any help would be really appreciated ;-)
This produces Year-Month-Day
This produces Day of week, Name of Month, Day of month, hour, minute and ending with AM or PM
print(date("l F d h:i A"));
If the goal is to read the current date into the data base then check the
tutorial in this site by Kevin Yank. it uses the CURRENT_DATE in one of the input commands in Part 4 and the subsection "inserting data into a data base."
Everyone, thanks for your help and quick replies! FYI, i've used Ed's print(date("l F d h:i A")); command to produce the output I required, I was trying to use gmdate() to do the same sort of thing but I kept getting errors.
Once again thanks, nice to know there are people out there willing to help!