質問編集履歴
2
コードの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -194,4 +194,24 @@
|
|
194
194
|
|
195
195
|
</body>
|
196
196
|
</html>
|
197
|
+
```
|
198
|
+
```php
|
199
|
+
$file="231536_receive.txt";
|
200
|
+
$count=1;
|
201
|
+
$files = file('231536_receive.txt');
|
202
|
+
|
203
|
+
if (file_exists($file)) {
|
204
|
+
// 2ループ処理
|
205
|
+
for ($i=1; $i<count($files); $i++){
|
206
|
+
$numraw = explode("<>", trim($files[$i]));
|
207
|
+
$numpoint = $numraw[0];
|
208
|
+
// 最大値より配列の値が大きければ上書きをする
|
209
|
+
if($count <= $numpoint){
|
210
|
+
$count=$numpoint;
|
211
|
+
$count=++$count;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
} else {
|
215
|
+
$count = 1;
|
216
|
+
}
|
197
217
|
```
|
1
初心者マークの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
$err_msg2 = "";
|
25
25
|
$err_msg7= "";
|
26
26
|
$message ="";
|
27
|
-
$passmessage="";
|
27
|
+
$passmessage="";
|
28
28
|
$edfile = file('receive.txt');
|
29
29
|
$name=( isset( $_POST["name"] ) === true ) ?$_POST["name"]: "";
|
30
30
|
$text=( isset( $_POST["text"] ) === true ) ?$_POST["text"]: "";
|