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[0] = "Company A"
$referrercount [0] = 300
$referrer[1] = "Company B"
$referrercount [1] = 500
$referrer[2] = "Company C"
$referrercount [2] = 100
I hope this makes sense..?
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[0] = "Company A"
$referrercount [0] = 300
$referrer[1] = "Company B"
$referrercount [1] = 500
$referrer[2] = "Company C"
$referrercount [2] = 100
I hope this makes sense..?