poe Posted February 2, 2008 Share Posted February 2, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/89115-solved-database-to-array/ Share on other sites More sharing options...
Barand Posted February 3, 2008 Share Posted February 3, 2008 $links_array[$link][$type][$month] = $hits Quote Link to comment https://forums.phpfreaks.com/topic/89115-solved-database-to-array/#findComment-456621 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.