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?

Counter - sql querry ?

Asked Modified Viewed 3,921 times
K
kiksthekillar
K
  • Member, joined since
  • Contributed 61 posts on the community forums.
  • Started 10 threads in the forums
  • Started this discussions
asked
Member

Hi out there...
The thing is that i just installed php-fusion from the beginning again, and went in to the Database Backup function, and restored some of the tables for my site, from yesterday. But i did not get the counter states along with it... :s


I think that is weird, cause i made a full Database Backup of the entire site yesterday, where the states said 761, and now after the Database Backup restore it says 0.

Does anyone know what the table for the counter states is ?

i hope some one can help me, cause i don't want to start my counter at zero again :(
0 replies

16 posts

F
fetloser
F
  • Senior Member, joined since
  • Contributed 275 posts on the community forums.
  • Started 2 threads in the forums
answered
Senior Member

that's weird, amybe something for your host to figure out?
0 replies
S
snowatom
S
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 3 threads in the forums
answered
Junior Member

I figured out why I have so many problems, the installation of phpadmin on the one.com server is false.

If I click the "pen" icon in the settings table, nothing happens. Cause the hyperling is "tbl_row_delete.php"

In all the other tables ex. user table, if I click the pen icon is more like "http://phpmyadmin.snowatom.com/tbl_change.php?lang=da-iso-8859-1&server=1&db=snowatom_dk&table=fusion_users&pos=0&session_max_rows=30&disp_direction=horizontal&repeat_cells=100&dontlimitchars=0&primary_key=+%60user_id%60+%3D+%271%27&sql_query=SELECT++%2A+%0AFROM++%60fusion_users%60+&goto=sql.php"

So something must be wrong since the edit butten for the settings table, only have such a bad hyperlink.

snowatom
0 replies
F
fetloser
F
  • Senior Member, joined since
  • Contributed 275 posts on the community forums.
  • Started 2 threads in the forums
answered
Senior Member

hehe, we all do those small mistakes from time to time :D

Here's where the "pen" icon comes in! lol.

Click it, the one to the left of the layout. Now you get a new page with editable stuff! Save with the run/save or whatever it says in the bottom of the page :)
0 replies
S
snowatom
S
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 3 threads in the forums
answered
Junior Member

DAMN STUPID ME :D

Well, thanks now i can see the actual number of the counter, strange I can't edit it in the database in phpmyadmin though.
0 replies
F
fetloser
F
  • Senior Member, joined since
  • Contributed 275 posts on the community forums.
  • Started 2 threads in the forums
answered
Senior Member

you have to scroll like a mile to the right!
0 replies
S
snowatom
S
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 3 threads in the forums
answered
Junior Member

If i click that icon, I can't find any info on the counter.

I get the welcome messege info, that I use in the fusion site

snowatom
Edited by snowatom on 08-11-2006 13:50,
0 replies
F
fetloser
F
  • Senior Member, joined since
  • Contributed 275 posts on the community forums.
  • Started 2 threads in the forums
answered
Senior Member

haha, wait it's not a pen, i remembered wrong!

look at this one. Click the paper i circled!
0 replies
S
snowatom
S
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 3 threads in the forums
answered
Junior Member

Heres the funny part, this is the image I get when clicking the pen icon.

snowatom
0 replies
F
fetloser
F
  • Senior Member, joined since
  • Contributed 275 posts on the community forums.
  • Started 2 threads in the forums
answered
Senior Member

yes, click the "pen"-looking image on the left side table and you'll get to where you want to be :D
0 replies
M
Matonor
M
Impossible things are there to be made possible
  • Veteran Member, joined since
  • Contributed 1,022 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

No. You look at the Database Table in Structure Mode. This Shows the Default Value which is 0. You need to click the View tab on top to get to the actual Values stored in the DB
0 replies
R
robo_rat
R
Robo Rat
"When the going gets tough, the tough hide under the table"
www.valley-venturers.wellington.net.nz
  • Member, joined since
  • Contributed 58 posts on the community forums.
  • Started 7 threads in the forums
answered
Member

You know, I think that the database you are browsing in phpmyadmin is for a different website to the website you are using. Hence the different values for Counter, Version and locale.
0 replies
S
snowatom
S
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 3 threads in the forums
answered
Junior Member

Well, that works ok. BUT why is the counter as written above not the same in the database as in the site.

The attached picture shows the database of my fusion, the counter is now aprox 103 - why can't I see that in the phpmyadmin database ?

It seems to show 0 in the database shown in PHPmyadmin.

snowatom
Edited by snowatom on 07-11-2006 22:35,
0 replies
2
2old
2
2old 10
  • Member, joined since
  • Contributed 89 posts on the community forums.
  • Started 6 threads in the forums
answered
Member

Put the following code into a new custom page and PREVIEW ONLY - dont save (change 999 to the number you want)

<?php
$result = dbquery("UPDATE ".$db_prefix."settings SET counter='999'");
?>
0 replies
K
kiksthekillar
K
  • Member, joined since
  • Contributed 61 posts on the community forums.
  • Started 10 threads in the forums
  • Started this discussions
answered
Member

i just tryed to change the counter number like you said, to 200 just to test it.. nothing happend.. i still says 5, like before
0 replies
K
kiksthekillar
K
  • Member, joined since
  • Contributed 61 posts on the community forums.
  • Started 10 threads in the forums
  • Started this discussions
answered
Member

okay.. thx :)
if i change it to a nother number myself, will the counter function still work?
my counter state says 4 right now when i visit my site. But in phpmyadmin under settings - counter - it says 0. will it not wreck the counter if i change the 0 til another number?

And i just noticed that under settings - version - it says : 6.00.400
and in Locale it says English

why? im running v.6.01.6 in Danish Locale.

sorry for asking so much.. i just want to be safe
Edited by kiksthekillar on 26-10-2006 02:25,
0 replies
B
Bad Boy
B
____________________
BadBoy aka GoogleDude
http://www.googlecityforums.com
  • Member, joined since
  • Contributed 155 posts on the community forums.
  • Started 1 thread in the forums
answered
Member

You can find the Unique Visits count in your database. It is in the "settings" table, under the "counter" field. Simply edit it to what you were at before.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 16 posts
  • Votes 0 votes
  • Topic users 7 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet