what i'm trying to dynamically build is a simulation of a stock market month for a certain company.
To run the simulation I'll:
1) Input the month, trading days, weekends, and holidays. the hours will be 9-5
2) Next I'll input the starting price for the stock, some ranges for the stock price to fluctuate "using random()", number of trades per day, and the ending price for the month
3) When i hit the submit button it'll generate the pseudo-stock activity for the entire month and insert it to my db.
After it's in the db i'll pull for my charts & pages.
So basically i want to dynamically build static "future" activity for a month. That's why i need the timestamps generated for me. I need the script to leave out all the timestamps that are not needed...the after hours, holidays, etc.
I'm looking into using a multi-dimensional array, and then writing it all to the db.
Hope that clears things up,
thanks everyone,
.:leon:.