Hi I have been using this script and it works perfectly for what I need:
https://coursesweb.net/php-mysql/website ... ss-data_s2
My question is that it only counts a cumulative total. If a page is not accessed during a month it does not show, but as soon as it does it places them in the total place and not a monthly spot.
Is there any way to show a total and monthly placement based on separate total and monthly figures?
Total and Monthly records in Website Traffic and Access data
-
- Posts: 7
Total and Monthly records in Website Traffic and Access data
Admin
Hello,
It is needed to rewrite a major part of the Page Access script, to record data separately for each month.
This changes require also modification in the mysql table.
At the moment I cannot work to such update, maybe next week I'll can take a look over script code.
It is needed to rewrite a major part of the Page Access script, to record data separately for each month.
This changes require also modification in the mysql table.
At the moment I cannot work to such update, maybe next week I'll can take a look over script code.
beegee
thanks for the quick response and that would be awesome. I have been doing it manually by putting in the numbers into Excel but to be able to show a true monthly most popular for example when I create a new page it will rarely get to top of the list as it is over a year behind in count. So I don't know if that is popular or not
Admin
Hello
I updated the script. Now, the method $objSA->topMonth($nr, $year, $month) works properly, returns html list with top accessed $nr pages in specified $year and $month; also, in the "Current Page Access" area it is displayed the number of visits of the page in current month.
- You need to Download again the script, and reinstall it (including the tables in mysql database).
I updated the script. Now, the method $objSA->topMonth($nr, $year, $month) works properly, returns html list with top accessed $nr pages in specified $year and $month; also, in the "Current Page Access" area it is displayed the number of visits of the page in current month.
- You need to Download again the script, and reinstall it (including the tables in mysql database).
beegee
Hi, it looks good can't wait to see if the monthly totals work. The only problem I notice is on the test.php page I get the following error msg:
This does not show on the test.html page. Also not to be pushy, because I am very happy with this, but I see you now use .json instead of .txt and I notice the line is different. Is there any way to import my stats from the old version or do I have to start fresh?
Code: Select all
Warning: Cannot modify header information - headers already sent by (output started at /home4/mysite/public_html/website_traffic/test.php:15) in /home4/mysite/public_html/website_traffic/siteaccess/class.MiniTrafic.php on line 22
Admin
Hi,
I made some changes in the script that fixed the error you mentioned; just download the script again.
You have to start the script fresh because the new format for saving data it's a bit different.
- I implemented the script in this site too, you can see how it works at the bottom of the site pages (not in forum).
I made some changes in the script that fixed the error you mentioned; just download the script again.
You have to start the script fresh because the new format for saving data it's a bit different.
- I implemented the script in this site too, you can see how it works at the bottom of the site pages (not in forum).
Similar Topics
-
Traffic and Site Access - Records data but not show stats
Scripts from this website
First post
One more question please about this script:Last post
I have one central page that shows the stats for the site. There are pages that I want to log but not...
that seems to have done it...thank you for both the speed in which you fix problems and your scripts. I recommend this program to anyone that wants... -
Create links with records and mysql page data from link
PHP - MySQL
First post
Into this code i see 30 records.Last post
Now i wanna add a link to eatch single record.
i can do this with: >'. $row .'
but how do i create a singel...
If there is a notice_id ; in that mysql table, you can store it in a variable, then apply echo to that variable.
while($row =... -
Show total results from rating in mysql
PHP - MySQL
First post
I have a rating script where new people able to rate from 1 till 5.Last post
Now i have this simple code what shows the total number of rates:
<?php...
Thank you so mutch Admin great work -
I want a grade for my website
General Forum
First post
Dear Admin, I never had a grade from you about my website ????Last post
I hope you could give it a number from 0 till 10
thank you in advance....
(vv)...
LOL thanks chief :D for the grade -
Get all records of the user in mysql table
PHP - MySQL
First post
My next problem when i use this code i getting one record from user=' anonymous@hotmail.com 'Last post
but i would like to have all the records what is...
Hello,
You have to use a while() loop to traverse the rows returned in the result set.
$sql=mysqli_query($conn, SELECT * FROM `notice` WHERE...