Hello everybody...
I write this code to show my record from table, but i don't use the pagination technique. i hope u all can help me how to change my code to show record become as pagination.
here my coding :
<?
include 'dbase.php';
$query = "SELECT * FROM bukupelawat
WHERE subjek = '$subjek'
AND sah = 1";
$result = mysql_db_query($dbname,$query);
$a = 0;
while($row = mysql_fetch_array($result)) {
$id = $row["id"];
$nama = $row["nama"];
$lokasi = $row["lokasi"];
$tarikh = $row["tarikh"];
$kandungan = $row["kandungan"];
$a++;
?>
<tr class="alt2Active" >
<td height="23" class="smallfont"><table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td class="smallfont"><strong><? echo $nama ?></strong></td>
</tr>
<tr>
<td class="smallfont"><? echo $lokasi ?></td>
</tr>
<tr>
<td class="smallfont"><? echo $tarikh ?></td>
</tr>
</table></td>
<td valign="top" class="smallfont"><? echo $kandungan ?></td>
</tr>