Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

unique visits I want to bring them from the beginning

Asked Modified Viewed 5,385 times
L
lklk
L
lklk 10
4EVER WWW.PHP-FUSION.CO.UK and 4EVERY ONE
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
asked
Member

I search help aabout unique visits
How to make unique visits start from the beginning I want to hide the number of Visitors.

I want to start from 0 ( zero ).
0 replies

8 posts

H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

1. To reset unique visitors to zero, PREVIEW this code in custom pages, do NOT save.

<?php
$update_count = dbquery("UPDATE ".DB_SETTINGS." SET counter = '0'");
if ($settings['counter'] == '0') { echo "Done"; }
else { echo "Error"; }
?>


you may need to click preview twice.
0 replies
L
lklk
L
lklk 10
4EVER WWW.PHP-FUSION.CO.UK and 4EVERY ONE
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

When put this code appears

Table 'jovo_net.DB_SETTINGS' doesn't existError
0 replies
B
bite
B
bite 10
  • Member, joined since
  • Contributed 163 posts on the community forums.
  • Started 5 threads in the forums
answered
Member

Copy that code, paste in to custom pages content and preview it.
Edited by bite on 23-11-2009 02:31,
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

<?php
$update_count = dbquery("UPDATE ".$db_prefix."settings SET counter = '0'");
if ($settings['counter'] == '0') { echo "Done"; }
else { echo "Error"; }
?>


Try This then
0 replies
B
Basti
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

You are using PHPFusion 6 right?
If yes, post your thread in thr PHPFusion 6 Support next time and not in PHPFusion 7 Support.
Thanks.
0 replies
L
lklk
L
lklk 10
4EVER WWW.PHP-FUSION.CO.UK and 4EVERY ONE
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

Yes I have php fusion 6.

these codes that have appeared not got the unique visits back from the beginning.

0 replies
L
lklk
L
lklk 10
4EVER WWW.PHP-FUSION.CO.UK and 4EVERY ONE
  • Member, joined since
  • Contributed 53 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

Now i have testet this code:

<?php
$update_count = dbquery("UPDATE ".DB_SETTINGS." SET counter = '0'"wink;
if ($settings['counter'] == '0'wink { echo "Done"; }
else { echo "Error"; }
?>

Now is Okey unique visits is from the beginning from 0.

Thnks for all.
Edited by Basti on 26-11-2009 17:52,
0 replies
B
Basti
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

the code was only wrong because you posted the thread into the wrong forum.
You posted the thread in v7 forum, but you are using v6.

Next time be careful in which forum you post your thread since we are not prophesier and don't have a crystal ball.

Thanks.

Thread moved to v6 support.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 4 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet