Jump to content

I need help with count code


nycsavage

Recommended Posts

I have a database called users

 

I have obvious tables

ID

Name

Age

Referral

Location

 

Basically, I was looking for a code that would count how many times user a has referred someone, user b etc

 

Then I would like a running total saying user a has x referrals, user b has x referrals etc

 

Finally, I would like this display as a top 2 on my website.

 

I know it probably sounds easy (if I was coding in .net id have it done by now lol) but with php im a noob im afraid.

 

Can anyone help?

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/101915-i-need-help-with-count-code/
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.