Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - random database records
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

random database records

 Post Reply Post Reply
Author
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Topic: random database records
    Posted: 23 April 2003 at 2:14pm

hello all

is it possable to get 5 different and random records from a database and put it in your page, and every time the page is viewed, you get 5 completely different records?

(doesnt matter if sum records are the same, long as it aint on at the same time)

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2003 at 3:20pm

Sure its possible...

In SQL Server SPROC anyways
http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=173

I use something like that a site, it could be easily modified to pull 5 instead of one

Contribute to the working anarchy we fondly call the Internet
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 25 April 2003 at 4:27am

hay umm thanks for this - i thought i would get emailed about this, but i didnt :S could have sumfin to do wit change from RC1 to Final ??

anyway thanks for the link - i have no idea wot it all means, but i'll try it

just a couple questions....

1) will it "write" the record its self... or do i have to put in where i want it?

2) :) could you give me an idea on how i could put 5 in?
if i have to put the record in my self... would a "Loop" work? for showin 5 records?

 

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.