Hi guys,
I need help in counting the rates from mysql. Any help would be appreciated.
There is a table called: rates, vote_for is a row to whom the votes goes to and votez is a row where are the votes.
Now I'm trying to count all the 'cool' named votes from selected user.
(I'm sorry if I'm not very clear enough..)
$query = "SELECT count(*) AS countrates FROM rates WHERE vote_for = '$getpicture_owner'
( SELECT '$getpicture_owner' FROM rates WHERE votez = 'cool' ) ";
this code is bringing some line errors(the line where I try to select the row).. 🙁
thanks in advance