Jump to content

getting a range of records


jack.johnson.87

Recommended Posts

i don't have any experience with writing php but we use this line in the browser window, so I'm hoping that someone here can help:

www.mysite.com/admin/user.php?action=Modify&ID=1234

That pulls up one record, but sometimes I want to look at a range like 1229-1234.  Is there a way that line can be formatted to display the range?

Thanks,

JJ
Link to comment
https://forums.phpfreaks.com/topic/34612-getting-a-range-of-records/
Share on other sites

perhaps have two variables in the url with the start and end of range and use those, as so

[code]
htttp://www.mysite.com/admin/user.php?action=Modify&minID=1&maxID=56
[/code]

then (in psedocode, my mysql is a little rusty)
[code]
SELECT * from <table> WHERE id >= <minId> & id <=>maxID
[/code]

just a thought :) hope it helps

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.