hi expert, i nedd help to resolve this problem.
i have a complex situation where the output of different query string is parsed by different for and foreach to obtain a sort of report.
before the report is generate i have two array
$vecservizio array that contain all the record of <tablename> for each service
$allcompdata array that contains all the record of <tablename> for each component to visualize.
To obtain the output
for ($x=0;$x<count($vecservizi
o);$x++){
echo $vecservizio[$x][1];
echo " ";
echo $vecservizio[$x][3];
echo " ";
//echo $vecservizio[$x][4];
printf("%3.2f",$vecservizi
o[$x][4]);
echo " ";
echo bcdiv($vecservizio[$x][2],
3600,2);
echo " &
nbsp; 
; ";
for ($y=0;$y<count($allcompdat
a);$y++){
if ($allcompdata[$y][1][$x][3
] < $garsrv){
echo $allcompdata[$y][1][$x][3]
;
echo " ";
printf("%3.2f",$allcompdat
a[$y][1][$
x][4]);
echo " ";
echo bcdiv($allcompdata[$y][1][
$x][2],360
0,2)."<br>
";
}else{
echo $allcompdata[$y][1][$x][3]
;
echo " ";
printf("%3.2f",$allcompdat
a[$y][1][$
x][4]);
echo " ";
echo bcdiv($allcompdata[$y][1][
$x][2],360
0,2)."<br>
";
}
}
}
in this situation i obtain output formatted like this
01-01-2008 100.00 0.00 0.00 100.00 0.00 0.00
01-02-2008 100.00 0.00 0.00 100.00 0.00 0.00
and so on...
How can i do put this result in one array ;
Thank's
Start Free Trial