Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 18th, 2003, 03:29 PM
phpnewbie3 phpnewbie3 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 49 phpnewbie3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
scroll through records.

Hi,

This one is kinda hard to explain.
I need to scroll though the records of a database table 5 at a time.

For example, I have ten records
1 record1
2 record2
3 record3
4 record4
5 record5
6 record6
7 record7
8 record8

I want to display records 1,2,3,4 and 5, then the next time the page is hit, display 2,3,4,5,6, next time 3,4,5,6,7, then 4,5,6,7,8, and then it revolves around to the first one displaying 5,6,7,8,1.

I have wrote an elaborate PHP script that does this but it takes too long to load it. Is there a sql statement that might do it?

Vince
__________________
Auction off your web site real estate.

http://www.webmasterbids.com

Reply With Quote
  #2  
Old February 19th, 2003, 03:06 AM
yassoor's Avatar
yassoor yassoor is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Canada - Egypt
Posts: 60 yassoor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
question?

is this
"moving from the 1,2,3,4,5 state to the 2,3,4,5,6 state"
done by a next button
or
if I visit the page I see 1,2,3,4,5 and right after me John Smith visits the page sees the 2,3,4,5,6
?
__________________
I hope this is of any help to anyone.

Yassoor
http://www.WebsitesCreation.ca

Reply With Quote
  #3  
Old February 19th, 2003, 08:00 AM
phpnewbie3 phpnewbie3 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 49 phpnewbie3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
The latter, if I visit the page I see 1,2,3,4,5 and right after me John Smith visits the page sees the 2,3,4,5,6

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > scroll through records.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway