2011-11-25, 07:35 PM
So..
In the Database there are 2 rows containing the same TID and USER
See on the image:
When I fetch_array the sql that selects everything from this db
It displays the 2 rows in the table
I mean 2 of them same user same tid and same vote in the table
I just want when fetch_array to display only 1 row
Where in the db are with same tid and user
and the vote to be with SUM and to sum the both rows in the db
In the Database there are 2 rows containing the same TID and USER
See on the image:
When I fetch_array the sql that selects everything from this db
It displays the 2 rows in the table
I mean 2 of them same user same tid and same vote in the table
I just want when fetch_array to display only 1 row
Where in the db are with same tid and user
and the vote to be with SUM and to sum the both rows in the db