| Display Top 10 Records ASP Script - ASP Web Pro |
|
ASP ScriptsDISPLAY TOP 10 RECORDSSometimes when you display records from a database on the web, you only want to display the most recent records. The Our Latest Scripts list on our home page only displays the top 10 records ordered by date. Here is how you do it. The first thing you need to do is create a database called
MyDatabase. Then create a table called tblScripts with these
fields: Then, start adding some data to your database. If you leave the database empty, the script will simply display a blank page. Next, you create a page called displaytop10.asp and copy the below code into your page:
This will display the top 10 most recent records that were entered into your database.
|
|||
|
Main Menu Other Resources
Last Updated:
|
|||
|
© 1997-2010 ASP Web Pro, Inc. | Terms of Use
|