Hi there,
' To be a good programmer...'
First off, I'd start indenting your PHP code properly.
Secondly, I would look at indenting your HTML as well. I can't see how you could possibly keep control otherwise.
Anyway, that's where the problem is (at least one of your problems - there may be others but I would fancy trying to find them as it stands) ... you're missing a '<tr>' here ...
<td><div align="center" class="smallfont">Jumlah Rekod : <? echo $RecordCount ?></div></td>
</tr>
[b]Opening <tr> missing here[/b]
<td valign="top"><table width="100%" border="1" align="center" cellpadding="4" cellspacing="1" bordercolor="#000000">
Paul 🙂