Feb 14, 1999, 11:02 AM
Veteran / Moderator (8669 posts)
Feb 14, 1999, 11:02 AM
Post #5 of 5
Views: 631
In order to find the last x number of records added, you have to either have a date field or a numeric db_key that is generated by DBMan ($db_key_track = 1) and is uneditable. (The latter is probably preferable, because you might have more than x records added in a day and you wouldn't necessarily get the last x records if you used a date field.)
In the URL to search for the last x records, set
$db_key=*
mh=x [the number of records you want to show]
sb=[the field number of your $db_key]
so=descend
If you'd rather have a date field than a numeric key, change
sb=[the field number of your date field]
What you'll get is the last x records added on the first page, with the rest of the records available in the page bar at the top.
------------------
JPD