Print Page | Close Window

random database records

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=2025
Printed Date: 29 March 2026 at 2:54pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: random database records
Posted By: Scotty32
Subject: random database records
Date 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)




Replies:
Posted By: MorningZ
Date Posted: 23 April 2003 at 3:20pm

Sure its possible...

In SQL Server SPROC anyways
http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=173 - 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


Posted By: Scotty32
Date 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?

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net