Re: date
| From: | Michael Hall | Date: | Mon, 05 Mar 2001 00:06:04 +0000 |
| Subject: | Re: date | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42548@lists.php.net to get a copy of this message | ||
Yes you can. Include a field in your db called 'date' or whatever.
Generate the date in your script using:
$today = date("Y-m-d");
Then simply add the date to the db along with everything else.
There are lots of ways to format dates, too many to describe here.
Have a look at the PHP manual.
Also, if you make the data-type of the date field 'date', your options for
formatting are more limited. That stuff is all in the MySQL manual.
Michael
On Sun, 4 Mar 2001, george wrote:
> Can you mark the date when an entry is placed in the db and then get that
> date to display when the info is pulled out
>
> TIA
>
> george
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>