$qPhysician = mysql_query("SELECT * FROM physicians");
$num = mysql_num_rows($qPhysician);
$i=0;
while($i < $num)
{
"<tr>";
"<td>" . mysql_result($qPhysician,$i,"lastName") . "</td>";
"<td>" . mysql_result($qPhysician,$i,"firstName") . "</td>";
"</tr>";
$i++;
}
I get blank result.
If I echo $num
, I get "19" which is the number of rows in my DB.
If I echo $rowPhysician['lastName']
just to test out if I get records, I get at least 1 record of last name. I don't know if there is something wrong with "while". Please help me out.