Auto inserting a database with dates
| From: | Chris Payne | Date: | Sun, 02 Mar 2003 06:05:01 +0000 |
| Subject: | Auto inserting a database with dates | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-26043@lists.php.net to get a copy of this message | ||
Hi there everyone,
Is there a quick and easy (HAH :-) way of doing the following:
I have a DB and a table with id, date etc ..... now what I need is to create 3 years of entries for
the date in advance of the system going live (Rather than while they use it - hard to explain why
but necessary).
Is there an easy way to write a short PHP script that will populate the field $stock with 3 years
dates in advance from the current date, using the format 02-03-200x ? it's either this way or
I go through and insert new onces argghhh (That's not a pleasant thought :-)
Thanks :-)
Chris