2 idiot Question for poll system |
[eluser]benfike[/eluser]
I have an vote script. Have an result view too. I want that the system display the result of the poll in rows. I have 3 tables for this.. this is the structure: @votes.question -voteid -question -date -status @votes_answer -ansid -voteid -answer @votes_votes -id -voteid -ansid -userid So in this poll, only Users Can Vote. Now my result.php in view: Code: <h2><?php echo htmlspecialchars($poll['question']) ?></h2><br><br> My other problem, how can I count how much votes comes for a answer? Code: function countVotesByAnsId($id){ But this dont work:/ The pull can be found at: http://www.arsenalfan.hu/szavazas and the result view at: http://www.arsenalfan.hu/szavazas/eredmeny/1 |
Welcome Guest, Not a member yet? Register Sign In |