I use the code to return data from a function and display it.
consider: i = j = 0; count = 4;
I do not get 4 return values from the code.. .which is expected output.
But i get the result when i replace the for loop with print_r($EODRow);
Pls help.
$i = 0;
$j = 0;
$count = getEODCount("A");
for(; $i < $count; $i++)
{
$EODRow = getEOD("A",$i);
print "<tr>";
for(; $j < 12; $j++)
{
print "<td>$EODRow[$j]</td>";
}
print "</tr>";
}
I return an array of values from the function.
You need to reset your loop variables each loop.
$jis not being reset to 0, after each$iloop.You should really change your loops to:
and