hiding next and previous buttons when under perPage number

5 posts by 2 authors in: Forums > CMS Builder
Last Post: July 21, 2010   (RSS)

By petejdg - July 6, 2010 - edited: July 6, 2010

I have my perPage record count set at 12 and would like to hide the "next" and "previous" navigation buttons unless I have 13 or more records in my db. Right now I have only 6 and don't want those to show since they are not needed. Not too familiar with php coding.
Attachments:

news_002.php 18K

Re: [petejdg] hiding next and previous buttons when under perPage number

By Jason - July 6, 2010

Hi,

This won't be hard to do. If you could attach the .php file you're working with, I'll be able to show you exactly where the code should go.

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/

Re: [Jason] hiding next and previous buttons when under perPage number

By petejdg - July 20, 2010

Did you ever get a chance to look at my file?

Re: [Jason] hiding next and previous buttons when under perPage number

By petejdg - July 21, 2010

That works great! thank you.