here is the code
$result=mssql_query($query);
while($rows=mssql_fetch_array($result, MYSQL_NUM))
{
$subjectcode[] = "<tr><td>" . implode("</td><td>", $rows) . "</td></tr>";
}
on my query i have 3 fields, subject1, grade and remarks..
for example the result of the query would be
math 1.55 NULL
now i want to evaluate the field (grade) so that i can insert to the implode part a pass or failed..probably i want to use an in statement inside the loop before the $subjectcode[]