Hi, i hope i can explain this correctly.. I am making a page that creates a 3d pie chart for the different types of calls my work has. I have a MySQL database that has jobs and referrers.. Anyway thats not imporant.. what I need to pass to the pie chart is the top 10 best referrals. The two bits of data for each record i have are... $referrer (pulled from a Jobs table in my database) $referrercount (a count of all jobs for that referrer query).. I know php has a sort feature but i need the 2 variables to stay in sync. I know i need to use a 2 dimensional array but I really am struggling to understand them. can someone give me a code example using the following data... $referrer = "Company A" $referrercount  = 300 $referrer = "Company B" $referrercount  = 500 $referrer = "Company C" $referrercount  = 100 I hope this makes sense..?