HELP! Counting values where id=1

Hello i am new in PHP i dont know everything but i know some stuffs
Could somone please tell me how i can count all values where id=1 from mysql database
Example

id=1 points=2
id=2 points=1
id=1 points=4

i need it count 2+4 = 6
Sorry for bad English, i will appreciate anyhelp
thanks

SELECT SUM(points) AS count
FROM table_name
WHERE id = 1

thanks a lot

Sponsor our Newsletter | Privacy Policy | Terms of Service