?>
<?
$sql2 = ("select poll.pollid,poll.active,sum(votes) as suvotes from poll_ans, poll WHERE poll.active='yes' group by poll.pollid ");
$result2 = mysql_query($sql2)or die(mysql_error());
$regis2 = mysql_fetch_array($result2);
$total=$regis2['suvotes'];