I think this is where you go wrong:
PHP Code:
echo $arrsize."|";
for ($i = 1; $i <= $arrsize; $i++)
{
$awardval = $awardarr[$i-1];
$i will generate numbers from 1 to the number of entries in the array, so: 1,2,3,4,5,..
However there is not entry $awardarr[1], you only have 3, 5, 6, ....
Instead of using a for loop, why not act on the arracy directly, ie:
PHP Code:
foreach ($awardarr AS $key => $value)
{
...process entry...
}