Well, you were right I solved that problem but got into another ๐
Have this tables:
Poll: Id, Author, Topic
Poll_options: Id, Pollid, Optionx
Poll_votes: Id, Pollid, Optionid, Author
The tables are related by the id's, my problem is:
If I want to list Poll 2 how can I list the options with no votes, I made this query:
SELECT poll_options.pollid,optionx,count(*) as votes
FROM poll_votes,poll_options
WHERE poll_votes.optionid = poll_options.id and poll_options.pollid='2'
GROUP BY poll_votes.optionid
This will only list the options with votes (regists on poll_votes)
Need some help, tks in advance ๐