hi
i want to calculate the no of user visited our site.can somebody please suggest how to do that
thanks in advance
queenc
-1
Junior Poster
Recommended Answers
Jump to Postyou just create a table with column like view..
the increment that column every time user visited your site like:if(isset($_GET['view'])) { $r="update viewtable set views=(views+1) "; $r1=mysql_query($r); } header("location:yournextpage.php");
and use this:
<a href="www.yousite.com?view" >
Jump to PostI've taken code from Shanthi's post and edited to to set a cookie when a user visits the page. When the user refreshes the page, it checks for the cookie. If the cookie exists, it does not add to the counter, and if it doesn't, it does add to the …
All 8 Replies
Shanti C
106
Posting Virtuoso
buddylee17
216
Practically a Master Poster
MVied
11
Junior Poster
Shanti C
106
Posting Virtuoso
MVied
11
Junior Poster
queenc
-1
Junior Poster
MVied
11
Junior Poster
Shanti C
commented:
nice
+2
MVied
11
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.