Lets say I have a page with div and mysql data in it. For example code below:
<div id="example">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>#</th>
<th>Name</th>
</tr>
</thead>
<tbody>
<?php $num_rows=1 ; // store the record of the "tblstudent" table into $row while ($row=m ysqli_fetch_array($result)) { // Print out the contents of the entry echo '<tr>'; echo '<td>' . $num_rows . '</td>'; echo '<td>' . $row[ 'name'] . '</td>'; $num_rows++;
} ?>
</tbody>
</table>
</div>
If I want to only refresh certain part of my page in this case the <div id="example">
, How can I do that with just a single page and not using .load()
or $.post
. Is it actually possible??