I have a swf which generates graph. It needs the data in an array format.
Code: Select all
<?php
$line=array(1,2,3,4). //Its working fine.
$line2=array(3,2,5,6).
?>
In my application, there will be many members. Each member will get a set of scores on some calculation. Please see below, $line is a line drawn by plotting points 1,2,3,4
Code: Select all
<?php
$line=array(1,2,3,4).
$member_ids = array(1,2,3,4);
$test_ids = array(1,2);
?>
// this is the code i wrote. Can someone help me in building array of scores for each members
<?php
for($member_count=0; $member_count<count($member_ids); $member_count++)
{
for($test_count=0; $test_count<count($test_ids); $test_count++)
{
$as=GetApplicantScore($member_ids[$member_count], $test_ids[$test_count]);
$hs=GetAllotedScore(1, $test_ids[$test_count]);
$final_member_score = $as-$hs;
//$final_member_score should be in array format.
// $final_member_score[] = $as-$hs // now the $final_member_score will contain all members score. I should be able to iterate scores, tests for each members seperately. I hope my explaination clear.
}
}
?>