DeathByTray
New Member
- Joined
- Dec 21, 2009
- Messages
- 63 (0.01/day)
System Name | Dustbuster |
---|---|
Processor | AMD Phenom II X4 "Deneb C3" 955 Black, 4x 3.2GHz |
Motherboard | GIGABYTE GA-770TA-UD3 |
Cooling | COOLERMASTER Hyper 212 Plus |
Memory | Kingston Technology DDR3 4GB 1333MHZ |
Video Card(s) | SAPPHIRE HD 5850 1GB GDDR5 |
Storage | WESTERN DIGITAL Caviar Black 2.0TB |
Display(s) | SAMSUNG SyncMaster P2450 24" TFT LCD |
Case | BITFENIX Survivor Core |
Audio Device(s) | OnBoard |
Power Supply | ARCTIC COOLING Fusion 550R |
Software | 7 |
I run into another problem.
Let's assume my table looks like this:
[table="head"]gfxid|price|date
1|300|02.04.2010
1|295|05.04.2010
1|305|07.04.2010
[/table]
As you can see, some dates are missing.
So, I'd like to fill these gaps and put the data into arrays.
Like this:
and
I assume you would need to convert the dates to unix timestamps in order to do some math with them. I haven't come up with anything useful yet though.
Anyone got an idea?
Let's assume my table looks like this:
[table="head"]gfxid|price|date
1|300|02.04.2010
1|295|05.04.2010
1|305|07.04.2010
[/table]
As you can see, some dates are missing.
So, I'd like to fill these gaps and put the data into arrays.
Like this:
PHP:
$date[1] = 02.04.2010;
$date[2] = 03.04.2010;
$date[3] = 04.04.2010;
$date[4] = 05.04.2010;
//etc.
and
PHP:
$price[1] = 300;
$price[2] = 300;
$price[3] = 300;
$price[4] = 295;
//etc.
I assume you would need to convert the dates to unix timestamps in order to do some math with them. I haven't come up with anything useful yet though.
Anyone got an idea?