Hi, I am trying to get the following piece of code to work. The data from the table academic belonging to a user of a particular user_id is supposed to be stored into the array $qual and as each user can have more than 1 record, the data is supposed to be feed into tables. However the page just comes up blank. This is only a snippet of the code, I have connect to my database earlier in the script.
I would be gratefull if anyone could tell me where I am going wrong !
<?php
$sql = \"SELECT * from academic WHERE user_id = $user_id\";
$qual = mysql_query($sql);
while ($qaul = mysql_fetch_array($qual)) {
?>
</td
</tr
<tr
<td width=\"19%\" height=\"58\"
<?php echo $clevel [\'clevel\']; ?></td
<?php echo $grade [\'grade\']; ?></td
<?php } ?>
Sorry ! The previous post did not show the HTML, there i have removed part of the tag brackets!