回答編集履歴

1

回答の変更

2015/06/09 15:22

投稿

退会済みユーザー
test CHANGED
@@ -1,11 +1,5 @@
1
- fetch, fetchAll のいずれかがないですね。
1
+ $sql="select answers, count(id) as count from answers group by answer1";
2
2
 
3
3
 
4
4
 
5
- マニュアル見る癖をつけしょう
5
+ 存在しない カラム answers 指定していすね
6
-
7
-
8
-
9
- http://php.net/manual/ja/pdostatement.fetch.php
10
-
11
- http://php.net/manual/ja/pdostatement.fetchall.php