Auto inserting a database with dates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux