Results 1 to 10 of 10
-
13th Nov 2009, 01:50 AM #1OPMemberWebsite's:
zomgbbqpizza.com evilddl.com scenemarket.orgStrange WCDDL v2 Stats Issue?
Hi, i am using the below code on wcddl v2 to show some stats at bottom....
At first it appears to work great... then when it reaches around 100 hits the counters stop updating and stay the same nomatter who visits.
Can anyone tell me what is wrong with the below code?
Code:function stats(){ //TRACK STATS $ip = $_SERVER['REMOTE_ADDR']; $referer = $_SERVER['HTTP_REFERER']; $time = time(); $date = date("M, d, Y"); $add_stats = mysql_query("INSERT INTO wcddl_stats(ip,referer,time,date) VALUES ('$ip', '$referer', '$time', '$date')"); //GET STATS FROM DB $unique_hits_select = mysql_query("SELECT DISTINCT ip FROM wcddl_stats"); $unique_hits_nr = mysql_num_rows($unique_hits_select); $unique_hits_today_select = mysql_query("SELECT DISTINCT ip FROM wcddl_stats WHERE date = '$date'"); $unique_hits_today_nr = mysql_num_rows($unique_hits_today_select); $total_hits_select = mysql_query("SELECT * FROM wcddl_stats"); $total_hits_nr = mysql_num_rows($total_hits_select); $total_hits_today_select = mysql_query("SELECT * FROM wcddl_stats WHERE date = '$date'"); $total_hits_today_nr = mysql_num_rows($total_hits_today_select); // STATS OUT $average2 = $unique_hits_nr / $total_hits_nr * 100; $average = round($average2,1); echo "<li>Total Unique Hits: $unique_hits_nr</li><li>Unique Hits Today: $unique_hits_today_nr</li><li>Total Hits: $total_hits_nr </li><li>Hits Today: $total_hits_today_nr</li><li>Average: $average%</li>"; }
DEViANCE Reviewed by DEViANCE on . Strange WCDDL v2 Stats Issue? Hi, i am using the below code on wcddl v2 to show some stats at bottom.... At first it appears to work great... then when it reaches around 100 hits the counters stop updating and stay the same nomatter who visits. Can anyone tell me what is wrong with the below code? function stats(){ //TRACK STATS $ip = $_SERVER; $referer = $_SERVER; Rating: 5
-
13th Nov 2009, 01:57 AM #2BannedWebsite's:
ax3.me$total_hits_nr * 100; - change the value
-
13th Nov 2009, 02:01 AM #3OPMemberWebsite's:
zomgbbqpizza.com evilddl.com scenemarket.orgNo all that is doing is dividing one variable with another then timesing it by 100, it i was to change it to say 1000, the result would be similar to this:
Code:Average: 590.6%
-
13th Nov 2009, 02:04 AM #4MemberWebsite's:
FlowForums.comOn your site where should it say over 100? I see 75 and 72.
Users Online: 4
Total Unique Hits: 75
Unique Hits Today: 72
Total Hits: 127
Hits Today: 117
Average: 59.1%
Downloads: 10
Queue: 0
-
13th Nov 2009, 02:16 AM #5OPMemberWebsite's:
zomgbbqpizza.com evilddl.com scenemarket.org
-
13th Nov 2009, 02:20 AM #6MemberWebsite's:
FlowForums.comWhy is http://wcddl.evilddl.com not veiwable via proxy?
-
13th Nov 2009, 02:27 AM #7Member
Sweet looking site. Is that a version of a Smoky skin?
-
13th Nov 2009, 02:30 AM #8OPMemberWebsite's:
zomgbbqpizza.com evilddl.com scenemarket.org
-
13th Nov 2009, 02:41 AM #9MemberWebsite's:
warezxtc.comHere's a better version.
http://warezcoders.com/forum/viewtopic.php?f=15&t=824
Note: It doesn't have the "average" feature like the old mod because it's useless.
-
13th Nov 2009, 02:58 AM #10OPMemberWebsite's:
zomgbbqpizza.com evilddl.com scenemarket.org
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Very Strange issue Apache
By UnReaL69 in forum Server ManagementReplies: 5Last Post: 11th Nov 2012, 09:00 PM -
Strange issue with Alertpay
By Chaitan in forum PayzaReplies: 3Last Post: 13th May 2012, 01:01 PM -
[MyBB] Strange problem
By praveer in forum Web Application/Script SupportReplies: 0Last Post: 28th Feb 2012, 03:30 AM -
Strange problem with my rdp..
By BeitarJerusalem in forum Hosting DiscussionReplies: 5Last Post: 12th Feb 2012, 10:10 AM -
PayPal Strange Issue :|
By l0calh0st in forum PaypalReplies: 17Last Post: 9th Jan 2012, 01:10 AM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...