Hello, I have a question: Suppose I have a table named as tblfriends and there are 3 columns with several row. Column names are: name, email, phone I want to pick 5 names randomly from the table each time my asp page refreshes. How can this be coded in classic asp? Thanx for your help
You can actually get this using a sql statement, if you are using ms sql or msde you could use select top 5 * from tblfriends order by newid() Code (markup): That will return a random list of 5 records from the db