【アンケート】残業はどのくらいありますか?

2014/7/2 00:00
Webサイト管理者(ID:a496f133b6dc)

    query('SELECT COUNT(id) FROM answers'); $total_votes = $sth->fetchColumn(); $sth = $pdo->query('SELECT answer, COUNT(id) AS votes FROM answers GROUP BY answer ORDER BY COUNT(id) DESC'); // var_dump($row); while ($row = $sth->fetch(PDO::FETCH_ASSOC)) { $percent = 0; $percent = round($row['votes'] / $total_votes * 100, 2); $option_name = ''; $sth2 = $pdo->query('SELECT option_name FROM options WHERE id = ?'); $sth2->execute(array($row['answer'])); $option_name = $sth2->fetchColumn(); // var_dump($option_name); echo "\t\t\t" . '
  • 投票数: ' . "\n"; echo "\t\t\t\t" . '' . $row['votes'] . '票 「' . $option_name . "」\n"; echo "\t\t\t\t" . '
    ' . "\n"; echo "\t\t\t\t" . '
    ' . "\n"; echo "\t\t\t\t" . $percent . '%' . "\n"; echo "\t\t\t" . '
  • ' . "\n"; } } catch (PDOException $e){ var_dump($e->getMessage()); } ?>

※一般企業の平均(平成25年度毎月勤労統計調査)

女性 5.6時間
全体 10.8時間

全投稿の本文を表示 全て1

7/2 10:13 いつもご尽力を賜りありがとうございます。 当方男子事務局... click to expand contents 

8/6 16:01 この度は、アンケートにご協力いただき、誠にありがとうござ... click to expand contents