質問編集履歴
5
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
4
test
CHANGED
File without changes
|
test
CHANGED
@@ -19,6 +19,8 @@
|
|
19
19
|
特にありません。
|
20
20
|
|
21
21
|
表示が消えてしまいます。
|
22
|
+
|
23
|
+
|
22
24
|
|
23
25
|
```
|
24
26
|
|
3
test
CHANGED
File without changes
|
test
CHANGED
@@ -31,6 +31,8 @@
|
|
31
31
|
```php
|
32
32
|
|
33
33
|
try{ $db=new SQLite3('wish.db');
|
34
|
+
|
35
|
+
$sql="SELECT * FROM allwish";
|
34
36
|
|
35
37
|
function search(){
|
36
38
|
|
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
{
|
42
42
|
|
43
|
-
echo '<a href="article?tag='. $search[$i].'">'.
|
43
|
+
echo '<a href="article?tag='. $search[$i].'">'. $search[$i].'</a>';
|
44
44
|
|
45
45
|
}
|
46
46
|
|
1
コード全体の記述
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,6 +30,8 @@
|
|
30
30
|
|
31
31
|
```php
|
32
32
|
|
33
|
+
try{ $db=new SQLite3('wish.db');
|
34
|
+
|
33
35
|
function search(){
|
34
36
|
|
35
37
|
$search=explode("#",$row[2],5);
|
@@ -58,6 +60,10 @@
|
|
58
60
|
|
59
61
|
' <li> '.$row[9].'</li>'. ' <li> '.$row[10].'</li>'.'</a>'.'</ul>'.'</div>';}
|
60
62
|
|
61
|
-
|
63
|
+
}
|
64
|
+
|
65
|
+
catch (PDOException $e) {
|
66
|
+
|
67
|
+
echo 'エラーが発生しました: ' . $e->getMessage();
|
62
68
|
|
63
69
|
```
|