Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

MySQL database record hits counter?

New Here ,
Jun 21, 2010 Jun 21, 2010

Copy link to clipboard

Copied

Can I find out how many times a record from the MySQL databse was called and displayed on a web browser?

Basically a MySQL database record hits counter. I’m using PHP/MySQL.

TOPICS
Server side applications

Views

952
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Jun 22, 2010 Jun 22, 2010

If you store the data about how many times a record is viewed then yes you can see it.

Votes

Translate
Enthusiast ,
Jun 22, 2010 Jun 22, 2010

Copy link to clipboard

Copied

If you store the data about how many times a record is viewed then yes you can see it.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 22, 2010 Jun 22, 2010

Copy link to clipboard

Copied

--> If you store the data about how many times a record is viewed then yes you can see it.

How is the data stored?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 22, 2010 Jun 22, 2010

Copy link to clipboard

Copied

You need to include an update recordset that gets executed everytime another recordset that you want to count fires.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 22, 2010 Jun 22, 2010

Copy link to clipboard

Copied

Ok I have created a Master Detail Page Wizard and it works fine. Now I want to be able to count the hits for a specific record. Using Dreamweaver CS3 how would I include an update recordset to the two files that were created with the Master Detail Page Wizard that gets executed everytime another recordset that I want to count fires?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 23, 2010 Jun 23, 2010

Copy link to clipboard

Copied

You would need to build logic that would test the result set to see if it matched the specific records, and then execute the update statement accordingly.

>to the two files that were created

Two files?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 23, 2010 Jun 23, 2010

Copy link to clipboard

Copied

LATEST

>to the two files that were created

>Two files?

Yes 2 files. In Dreamweaver CS3 & CS4 When using the "Insertà Data Objectsà Master Detail Page Set" function you must create two files:


1. results.php
2. detail.php

It appears that these two files work together hand in hand. You did not specify where nor how to include an update record set that gets executed every time another record set that I want to count fires. So I combined the two as one until it was clarified.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 23, 2010 Jun 23, 2010

Copy link to clipboard

Copied

http://forums.adobe.com/thread/459530

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines