...
while($row = mysql_fetch_array($result)){
$myarray[$row['defect_code']] = $row['total'];
}
//check with:
print_r($myarray);
diafol
Rhod Gilbert Fan (ardav)
7,796 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
Aha, cereal you OOPed it. Nice. :)
diafol
Rhod Gilbert Fan (ardav)
7,796 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080