Scriptads Home
Search script
Advanced Search
Show Categories
Add New Script
Modify script
About Us
Terms Of Use
Link To Us
Recommend Us
Contact Us
Links
List by category
Most popular
 1. WeberDev's Forums
 2. Circular preloader
 3. Easy payments...
 4. FFTW with OpenCV
 5. Phase...
 6. Basic...
 7. Menu with...
 8. UserGate...
 9. PixExpose
10. Two Levels XML...
more ...
Top rated
 1. Pixel Ad Script
 2. JavaScript...
 3. Essential PHP...
 4. Building...
 5. clanBox Gaming...
 6. Smash Bugs | ...
 7. WRQ Reflection...
 8. FFTW with OpenCV
 9. Cross browser...
10. UserGate...
more...

Selecting random record from database

 Script details


Script Title :  Selecting random record from database
Version :  
Author :  Dotnetindex.com
Platform :  windows
Home URL :  http://www.dotnetindex.com/articles/8055...  
Download URL :   
Demo URL :    
Category :  ASP - Database-related
Price :  Free
 
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.
 
Average Rating: 0.00
Number Of Votes: 0

Select Your Rating:

poor         best


Back