Jump to content

Data to Array Manipulation


Crimpage

Recommended Posts

Hi All,

I'm making a report for work, and what we have is a table that has these fields we need to use:

Table:
- Office
- Broker Name
- Financier
- Client
- About 5 info columns

What I need to do, is turn that into an array that looks like:

Array (
- Office
- Broker Name
- Financier
-Client 1
- Info columns
- Client2
- Info columns


We need to do this so that we can break up the pages so that each broker has their own page etc.

Thanks for your help.

Crimpage.
Link to comment
https://forums.phpfreaks.com/topic/10392-data-to-array-manipulation/
Share on other sites

Sorry, I probably should have worded it better.

Yes the info will be coming from a database. I have no problems with the query and if I don't need to create an array like this then that could be even better.

Basically, I need the report to be grouped together by the office, then broker, then financier.

So the report would look like:

Page1:
Office: Melbourne
Broker: Broker 1
Financier: Financier 1
Client 1 & Info
Client 2 & Info
Client 3 & Info
Financier: Financier 2
Client 4 & Info
Client 5 & Info

Broker: Broker 2
Financier: Financier 1 (same as number 1 above)
Client 1 & Info
Client 2 & Info
Client 3 & Info

Office: Sydney
and so on.

Thanks,

Crimpage.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.