I have two tables in a mysql database, “points” and “userpoints”.
e.g
Points:
id | pointvalue | message
----------------------------
1 | 5 | comment
Userpoints:
id | uid |pid | timestamp
-------------------------
89 | 5 | 1 | timestamp
How will I get the sum of the points in the userpoints table when it is being linked by the pid in userpoints?
Using a mysql query?
1 Answer