Jump to content

Recommended Posts

I want to create a menu like below

 

<< previous  next >>

 

where '<<' takes us to first record in array and 'previous' only goes back one. 'next' goes forward one and '>>' goes to end of array. I've been trying to google search for examples, but I'm not sure what to google. Does anyone know what this logic is called, or know of any examples of doing this.

Link to comment
https://forums.phpfreaks.com/topic/186724-menu-not-sure-what-type-it-is/
Share on other sites

I went to the link provided in the last post, and it worked seemlessly. My only question is, if I want to make sure that the most recent record seen is no later than TODAY'S date, how would I go about that?

 

Currently, the code loads all records in the table.

$query = "SELECT COUNT(*) FROM table";

 

Can I make that only select records up to today? I do have a column that caputures 'date' for each record.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.