JamesGMills
Programmer
Hi,
I have the follow array returned from my database query.
Array
(
[0] => Array
(
[Hour] => 1
[Hits] => 8
)
[1] => Array
(
[Hour] => 8
[Hits] => 11
)
[2] => Array
(
[Hour] => 9
[Hits] => 6
)
[3] => Array
(
[Hour] => 10
[Hits] => 14
)
I need to end up with an array looking something like this
Array
(
[1] => 8
[2] => 0
[3] => 0
[4] => 0
[5] => 0
[6] => 0
[7] => 0
[8] => 11
...
Any ideas?
------------------------
I have the follow array returned from my database query.
Array
(
[0] => Array
(
[Hour] => 1
[Hits] => 8
)
[1] => Array
(
[Hour] => 8
[Hits] => 11
)
[2] => Array
(
[Hour] => 9
[Hits] => 6
)
[3] => Array
(
[Hour] => 10
[Hits] => 14
)
I need to end up with an array looking something like this
Array
(
[1] => 8
[2] => 0
[3] => 0
[4] => 0
[5] => 0
[6] => 0
[7] => 0
[8] => 11
...
Any ideas?
------------------------