 |
Refer Listing To A Friend |
|
|
 |
SUGGEST Selecting random record from database TO A FRIEND...
If you have a friend that you would like to recommend this page to,
or if you just want to send yourself a reminder, here is the easy
way to do it!
Simply fill in the e-mail address of the person(s) you wish to tell
about Selecting random record from database, your name and e-mail address (so they do
not think it is spam and can reply to you directly with gracious thanks),
and click the SEND button.
If you want to, you can also enter a message that will be included
on the e-mail.
After sending the e-mail, you will be transported back to the
page you recommended!
| Resource Title: |
Selecting random record from database |
| URL: | [CLICK HERE] |
| Description: |
This ASP source code describes a short way to select a record from database. First we need to calculate how many records we have in our table. Using randomize function, we generate a random number between 0 to count of records in database.
Last part of code to select our record using our random number. We must move dynamic cursor in database table and move it to row number. There a few ways to move cursor to row, but personally we can do it similiar as paging records. We select all records from table dividing one record per page. Complete reference code is included.
| |
|
|
|
 |
|