im looking for a way in php to grab entries from a table named ‘answers’ in a mysql database, then grab entries from a table called ‘votes’ and calculate from them, the answer with the highest vote. I cant seem to find any help on this.
The structures can be viewed here
How it works is the users vote gets stored in the ‘votes’ table and is recognized by the ‘answer_id’ column, i just dont no how count them all and determine the answer with the highest votes
what about
If you want to get also answers without any vote, use: