回答編集履歴
1
回答の変更
test
CHANGED
@@ -1,11 +1,5 @@
|
|
1
|
-
|
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
|