[eluser]InsiteFX[/eluser]
Missing endforeach.
Code:
<?php
foreach($records as $row):
echo $row->first_name;
endforeach;
?>
Example:
Code:
<!-- Xajax pagination Table -->
<div id="xajax-grid">
<table border='2' cellpadding='0' cellspacing='0' id='paged-table'>
<thead>
<tr>
<th align="left">ID</th>
<th align="left">Name</th>
</tr>
</thead>
<tbody>
<?php $i = 0; ?>
<?php foreach ($grid_list as $item): ?>
<tr class="<?php echo ($i % 2 == 0) ? "even" : "odd"; ?>">
<td><?php echo $item->id; ?></td>
<td><?php echo $item->name; ?></td>
<!--<td> any function like edit, delete, etc </td>-->
</tr>
<?php $i++; ?>
<?php endforeach; ?>
</tbody>
</table>
<br />
<!-- Create the Xajax Pagination Links... -->
<?php echo $pager_links; ?>
</div>
<!-- End of Xajax pagination! -->