Hi,

I have been searching and trying for days now but still cant get this to work.
Id like to group my result from a SQL call into a multidimensional array.
The columns that are extracted are Timestamp, room, device and value and gets sorted accordingly.

As long as the Timestamp is the same id like it to be grouped in an array

Here i would like the array to be grouped containing line 1 and 2 in a multidimensional array with the key for the timestamp.

Please don't make multiple identical posts. Not good forum etiquette, plus it makes it difficult for people to collaborate when the answer is non-trivial, as this one is.

Thanks! and sorry it was a misstake. How do i delete this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.