| | |
script for number of views
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
do you have a database?
if so set up a command to update it. so you would have the article number. when the page is called a recordset retrieves the last value and then adds one. the command then updates the record to be the new value. you might want to use sessions though that it doesnt count EVERYTIME the same user views the page for that session. like a refresh of page.
the other way you could do it if your hosting server is stable is use application variables. which would reset if the server ever went down but is the easiest to use.
the other way is via a text file for each page. it reads the text file adds one then writes back to the text file the updated figure. not very practical as plenty text files get created then
if so set up a command to update it. so you would have the article number. when the page is called a recordset retrieves the last value and then adds one. the command then updates the record to be the new value. you might want to use sessions though that it doesnt count EVERYTIME the same user views the page for that session. like a refresh of page.
the other way you could do it if your hosting server is stable is use application variables. which would reset if the server ever went down but is the easiest to use.
the other way is via a text file for each page. it reads the text file adds one then writes back to the text file the updated figure. not very practical as plenty text files get created then
![]() |
Similar Threads
- Code tag checking script (IT Professionals' Lounge)
- script to address restartibily issue (Shell Scripting)
- Unresponsive script (DaniWeb Community Feedback)
- Myspace Bulletin & Forum Signature Tracking (Existing Scripts)
- shell script for number sequence--- anybody help me? (Shell Scripting)
- Problem with variables in Windows shell script (Windows NT / 2000 / XP)
- limit the number of downloads (PHP)
Other Threads in the ASP Forum
- Previous Thread: Challenging Problem in PASSing Data to Server, Plz Help
- Next Thread: How to transfer
| Thread Tools | Search this Thread |
Tag cloud for ASP
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection calendar changeable connection current database databaseconnection diagnostics dreamweaver excel fso html iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit web webserver windows7





