質問編集履歴
1
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,29 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
+
|
26
|
+
|
25
|
-
|
27
|
+
INSERT分を使っています。
|
28
|
+
|
29
|
+
```ここに言語を入力
|
30
|
+
|
31
|
+
if(!empty($_POST)){
|
32
|
+
|
33
|
+
if($_POST['message'] !==''){
|
34
|
+
|
35
|
+
$message = $db->prepare('INSERT INTO posts SET member_id=?,message=?,created=NOW()');
|
36
|
+
|
37
|
+
$message->execute(array(
|
38
|
+
|
39
|
+
$member['id'],
|
40
|
+
|
41
|
+
$_POST['message']
|
42
|
+
|
43
|
+
));
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
```
|
26
48
|
|
27
49
|
|
28
50
|
|