Jump to content

menu, not sure what type it is


CincoPistolero

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.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.