Convey sequential number to next listing page

2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 8, 2012   (RSS)

Re: [nmsinc] Convey sequential number to next listing page

By Jason - January 8, 2012

Hi,

Instead of setting the variable to 0, you can set it to 7 * the current page number -1

For example:

<?php
if ($lodgingMetaData['page']) {
$i = 7 * (intval($logdingMetaData['page']) - 1 );
}
else {
$i = 0;
}
?>

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/