the following code displays output as in attachment.. it skips some of the value.. in the above output, am not getting group name for DTA. but if i add
where groupid='DTA' in query
, it displays groupname. what went wrong here? please help.. thanking in advance.
while($rowmain=mssql_fetch_array($resultmain))
{
$course = $rowmain['GroupID'];
//$groupname is an array
for($i = 0, $size = sizeof($GroupName); $i <= $size; ++$i){
if($GroupName[$i][0]== $course)
echo "<td><font size'3'>{$GroupName[$i][1]}</font></td>";
}
}