如何将数据库上的大数据加载到 jquery 数据表中?
$(document).ready(function(){
$('#datatables').dataTable({
"sPaginationType":"full_numbers",
"aaSorting": [[0, 'asc'], [1, 'desc']],
"sScrollY": "200px",
"bJQueryUI":true
});
})
xnod_kode 表上的总数据 > 10000 条记录 ???
<?php
$result = mysql_query("SELECT * FROM xnod_kode limit 10");
$no = 1;
while ($row = mysql_fetch_array($result)) {
?>
<tr>
<td><?php echo $no; ?></td>
<td><?php echo $row['kodepos']?></td>
<td><?php echo $row['kelurahan']?></td>
<td><?php echo $row['kecamatan']?></td>
</tr>
<?php
$no++;
}
?>