Jump to content

MySql Query Display!


Recommended Posts

ok. i have a database with alot of users and usernames because every time they go to this 1 page, it uploads the username info. each time.

and i want to have a page that displays all the users and how many times they have viewed this one page.

 

but here is where i am stuck:

i dont want it to be like:

- Dave

- Angela

- Bob

- Dave

 

i want it to be like:

- Dave - 3 times

- Angela - 1 time

- Bob - 12 times

 

but i dont even know where to start, can anyone help me please?

 

 

 

Link to comment
Share on other sites

For the login process you mite be using sessions for the users...with a id or the username as the session value....so on the page u want the data for,

check if the session is set and if it is update the database ,set filed =+1 where username or id=session value.

 

I hope u gt it

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.