To compare the value of pageNum with the recordNum.

2 posts by 2 authors in: Forums > CMS Builder
Last Post: December 24, 2007   (RSS)

Re: [Djulia] To compare the value of pageNum with the recordNum.

By Dave - December 24, 2007

You can just call the function getNumberFromEndOfUrl() from /lib/viewer_functions.php directory like this:

<?php
$numFromUrl = getNumberFromEndOfUrl();
foreach ($listRows as $record):
if ($record):
?>
<li><?php if ($record['num'] == $numFromUrl): ?> class="menuselected"<?php endif ?>>(...)</li>
<?php endif ?>
<?php endforeach ?>


Hope that helps.
Dave Edis - Senior Developer
interactivetools.com