Results 1 to 10 of 10
Threaded View
-
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
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
themaLeecher - leech and manage...
Version 5.02 released. Open older version (or...