I\'m trying to sort and splice an array, however I\'m finding it very confusing.
I have pulled my data from a mysql table:
$total = mysql_query(\"SEL
while($result = mysql_fetch_assoc($total)) { $cst[] = $result['customer']; $partnumber[] = $result['partnumber']; $misc[] = $result['misc']; if(array_key_exists($result['misc'], $misc_num)) { $misc_num[$result['misc']] += 1; } else { $misc_num[$result['misc']] = 1; } }
I think that should do it!