Update viewpoll.php

A lot(!) of syntax errors to make the script compile properly.