Number of times visited

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Number of times visited

    I am using Coldfusion with Microsoft Access database integration to create
    applications. I am in desperate need for appropriate Coldfusion code so that
    each time a registered user logs in the database keeps a record of how many
    times the registered user has logged in.

    The key issue here is (I think) getting a cell number in Access to update
    itself, which obviously means having the right instruction from a Coldfusion
    webpage. I am sure it is simply!!??

    I would be extremely pleased if someone can put me out of my misery.:heart;

    ed@oac Guest

  2. Similar Questions and Discussions

    1. rate by most visited
      I have a website which lists products and I would like to track the hits for each of these products. Any idea how I can do this? What if the visitor...
    2. setting number of times Flash plays
      I've got a small Flash piece on a website. I want it to play three times and then stop. I've done this in the past and can't remember how, other...
    3. howto put the same number 36 times in a list?
      From the manuals I understand that you make a list with 36 times same number: Is there some easy operation that does it 36 time for me like:...
    4. Counting the number of times a user hits an html form
      I have a very long html form with many loops in it. I'm trying to keep track of how many times a user hits a specific web page while they are...
    5. identify duplicates in an array and number of times duplicated
      hi, i have created an array from recordset containing user names eg. (davidp, davidp, evenf, patricka, rebeccah) which i have sorted in...
  3. #2

    Default Number of times visited

    I am using Coldfusion with Microsoft Access database integration to create
    applications. I am in desperate need for appropriate Coldfusion code so that
    each time a registered user logs in the database keeps a record of how many
    times the registered user has logged in.

    The key issue here is (I think) getting a cell number in Access to update
    itself, which obviously means having the right instruction from a Coldfusion
    webpage. I am sure it is simply!!??

    I would be extremely pleased if someone can put me out of my misery.:heart;

    ed@oac Guest

  4. #3

    Default Re: Number of times visited

    Hi ed, Say you have a table in your MDB called tblLogins. It consists of a
    primary key field, a field to hold the user's ID (userID), and an integer field
    (LoginCount). Populate the table with your registered user IDs. Add code to
    your registration process to make sure that new users are added. Upon a
    successful login, issue the following code: <cfquery name='incrementLogin'
    datasource='#MyDSN#'> UPDATE tblLogins SET loginCount = loginCount+1 WHERE
    userID = '#whateversessionvariableyouusetoidentifytheuser#' </cfquery> HTH,

    philh Guest

  5. #4

    Default Re: Number of times visited

    Marvellous!!! Many thanks for your help!

    It's easy when you know how!
    ed@oac Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139