Jump to content

[SOLVED] database to array


poe

Recommended Posts

i have a db that has

linkid hits month type
1 3 jan F
1 6 jan R
1 2 jan B
1 3 feb F
1 3 feb B
1 9 mar F
1 8 mar R
1 2 apr F
2 3 jan F
2 3 jan B
...

 

 

how do i show my results if i want it to look like:

 

link	type	jan	feb	mar	apr	…

1	F	3	3	9	2	
R	6		8
B	2	3	

2	F	3	…	
R			
B	3		

 

i imagine i am going to put this into an array, but i cant figure out the array format to use.

 

Link to comment
https://forums.phpfreaks.com/topic/89115-solved-database-to-array/
Share on other sites

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.