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
https://forums.phpfreaks.com/topic/50343-retrieving-simple-data-im-lost/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.