My client JOSÉ appears 4 times on this table, and I wanted to get his balance total. How do I do this?
tabela "clientes"
ID NOME SALDO
1 josé 10
1 josé 20
1 josé 30
4 maria 50
5 marta 60
1 josé 100
7 ana 70
8 sara 80
Total de JOSÉ: 160
I'd like it to be a simple query like this:
$sql = mysql_query("SELECT user_login FROM clientes ????????? WHERE ID = 1");