Save current date, echo it?

Hello guys!

I would like some help with my php code, what i want to do is that when i press a button it will save date & time in a variable and the echo it. Notice that this is for a newfeed so i want to echo the same time and date forever wich means that it wont get deleted next time i’m posting a news.

Can say that I’m using phpmyadmin, might there i a option that automaticly prints out the date?.. :o’

//S

Okay, give it a go and show us your code and we will help you out!

You will need to use:

A form: http://www.php.net/manual/en/tutorial.forms.php
PHP date: http://uk3.php.net/manual/en/function.date.php
PHP echo: http://uk3.php.net/echo
PHP variable: http://www.php.net/manual/en/language.variables.php

Sponsor our Newsletter | Privacy Policy | Terms of Service