|
BeTheBall -> RE: Adding counters to records in db (3/20/2004 10:00:55)
|
Welcome to Outfront. If you are using the wizard, just open your page and insert a database results region above the one that shows the results. In step 2 of the wizard, select Custom Query and in the subsequent dialogue box, enter your SQL as above: UPDATE table1 set TimesViewed= TimesViewed + 1 WHERE (ID = ::ID::) In step 3, click "More Options and clear out the text box where "No records returned" appears. In step 4, uncheck the 3 check boxes and in step 5, mark "display all records together". If you are using "Pure ASP", I would simply insert the code to perform the update at the very top of the page, even before the <head>. Hope that helps.
|
|
|
|