Categories

Updated: 07/12/2007

Selecting random record from database

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.
Similar Scripts for "Selecting random record from database"

w3 Utils

w3 Utils is a set of powerful tools solving several problems and boosting your efficiency as well as enabling you to do several things not possible otherwise. w3 Utils is easily used from ASP code or any other environment supporting COM. w3 Utils ena...

WonderBanner

WonderBanner is an ASP banner program for you and your advertisers which uses an Access database. Your advertisers can access all statistics about their banners including: How many clicks, How many banner has been loaded, How many impression left to ...

Q-Shop

Q-Shop is a fully featured shopping system including: full catalog browsing system, Shopping cart, User purchase history generation, web based catalog administration, web based order administration, web based user management and many more features. ...

CactuShop

CactuShop is an ASP shopping cart system comprising .asp scripts and a choice of MS Access, MS SQL or MySQL database. Its the only major ASP cart to feature the latest W3C standards compliant code (XHTML 1.0 strict). Cactushop features an advanced &...

ASPCart

ASPCart(TM) for Microsoft Internet Information Sever allows you to create a virtual storefront on the Internet. ASPCart features the following: Unlimited concurrent on-line sessions, Full ASP source code Included, Full documentation,Working cart de...
©2003-2008 jCay.com