$selectedMenu=6; require_once "inc-configuration.php"; session_start (); if ($_SESSION["hlasoval"]!=1) { if ($_POST["odpoved"]!="") { mysql_query ("update inquiry_posibilities set click=click+1 where id=".$_POST["odpoved"]); $res=mysql_query ("select SUM(click) from inquiry_posibilities where idInquiry=".$_POST["anketa"]); $row=mysql_fetch_array ($res); mysql_query ("update inquiry set clicks=".$row[0]." where id=".$_POST["anketa"]); $_SESSION["hlasoval"]=1; } } function showProgress ($number) { $width=(($number*300)-19-24); if ($number>0) { $ret.=''; } else { $ret.=' '; } return ($ret); } ?>