ex) $path/snapoll.html?id=xxxx"; exit; } else { MysqlConnect(); $total = mysql_result(mysql_query("select count(*) from snapoll where id='$id'"),0,0); if($total == 0) { echo"»ý¼ºµÇÁö ¾ÊÀº ÄÚµåÀÔ´Ï´Ù."; exit; } } // ÅõÇ¥ ±â°£ÀÌ Á¾·á µÇ¾úÀ»¶§ MysqlConnect(); $query = mysql_query("select * from snapoll where id='$id'"); $poll = mysql_fetch_array($query); if($poll[end_day] < time()) { $mode = "view"; // ±â°£ Á¾·á½Ã ÅõÇ¥ °á°ú º¸À̱â $day_end = "y"; // ±â°£ Á¾·á½Ã ¸Þ½ÃÁö º¸À̱â À¯.¹« } ## ÅõÇ¥ Çϱâ if($mode == "" && !${"SnaPoll_Cookie_".$id}) { $item = explode(":",$poll[item]); $vote = explode(":",$poll[vote]); // ÃÑ ÅõÇ¥¼ö for($i=0; $iSnaPoll $ver : $poll[subject]
 • $poll[subject]
"; // Ç׸ñ Ãâ·Â for($i=0; $i "; } echo"
$no. $item[$i]
ÃÑ $total_vote ¸í Âü¿©
$start_day ~ $end_day [$day Àϰ£]
¡æ Áö³­ ÅõÇ¥ º¸±â
"; } ## ÅõÇ¥ ó¸® else if($mode == "poll" && !${"SnaPoll_Cookie_".$id}) { if(!$num || CheckInt($num)) { echo"Ç׸ñÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä."; exit; } // ÃÑ Ç׸ñ¼ö $vote = explode(":",$poll[vote]); if($num > count($vote)-1) { echo"Ç׸ñ ¼±ÅÃÀ» À߸øÇϼ̽À´Ï´Ù."; exit; } // ÄíŰ üũ -> ÅõÇ¥ Áõ°¡ if(!${"SnaPoll_Cookie_".$id}) { for($i=0; $iSnaPoll $ver : $poll[subject] "; // Ç׸ñ | ÅõÇ¥¼ö Ãâ·Â for($i=0; $i "; } // ÅõÇ¥ ±â°£ Á¾·á ¸Þ½ÃÁö if($day_end == "y") { echo" "; } // ÃÑ ÅõÇ¥¼ö | ÅõÇ¥ ±â°£(µî·ÏÀÏ~Á¾·áÀÏ,±â°£) echo" "; // ´Ý±â ¹öư if($window_open == "y") { echo" "; } echo"
 • $poll[subject]
$no. $item[$i]
 $vote[$i] Ç¥ : $percent % 
ÅõÇ¥ ±â°£ Á¾·á
ÃÑ $total_vote ¸í Âü¿©
$start_day ~ $end_day [$day Àϰ£]
¡æ Áö³­ ÅõÇ¥ º¸±â
c l o s e
"; } ?>