Jump to content

Retrieving simple data - Im lost


widget

Recommended Posts

Im wondering if someone can point me in the right direction.

 

My Table

 

id  item_id  pet_id  game 

58 30892    37359 1

57 30986    37329 1

56 30977    37329 1

55 31213    37329 1

 

What its used for: It keeps a record of who has read what books. What I would like to do is create a high scores (top 100) list where the person (pet) who has read the most is displayed.

 

My problem is, I cant work out how to make it grab the data and count how many entries there are for each pet_id and then display that.

 

What should I be searching for in the tutorials etc?

 

 

I hope you can make sense of my ramblings.

 

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.