include('scweb_connect.inc');
$SQL_Question = "Select * from pollquestion where qid = '$_GET[qid]';";
$SQL_Answer = "Select pollanswers.answer,count(polluser.awid)
from pollanswers left join polluser on pollanswers.awid = polluser.awid
where pollanswers.qid = '$_GET[qid]' group by pollanswers.answer
order by pollanswers.location;";
$SQL_Total = "select count(awid) from polluser where qid = '$_GET[qid]';";
//$total = mysql_fetch_array(mysql_query($SQL_Total));
?>
//$row = mysql_fetch_array(mysql_query($SQL_Question));
print("$row[2]");
?>
$today = date("Y-m-d");
$SQL_Questions = "Select * from pollquestion where magazine = '$row[3]' and date <= '$today' order by date DESC limit 6;";
$result = mysql_query($SQL_Questions);
$x=0;
while ($row = mysql_fetch_array($result))
{
if ($row[0] != $_GET[qid])
{
print("