質問編集履歴
5
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
4
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
```
|
10
10
|
特にありません。
|
11
11
|
表示が消えてしまいます。
|
12
|
+
|
12
13
|
```
|
13
14
|
|
14
15
|
### 該当のソースコード
|
3
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
|
16
16
|
```php
|
17
17
|
try{ $db=new SQLite3('wish.db');
|
18
|
+
$sql="SELECT * FROM allwish";
|
18
19
|
function search(){
|
19
20
|
$search=explode("#",$row[2],5);
|
20
21
|
for($i;$i<count( $search);$i++)
|
2
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
$search=explode("#",$row[2],5);
|
20
20
|
for($i;$i<count( $search);$i++)
|
21
21
|
{
|
22
|
-
echo '<a href="article?tag='. $search[$i].'">'.
|
22
|
+
echo '<a href="article?tag='. $search[$i].'">'. $search[$i].'</a>';
|
23
23
|
}
|
24
24
|
}
|
25
25
|
while( $row = $res->fetchArray() ) {
|
1
コード全体の記述
title
CHANGED
File without changes
|
body
CHANGED
@@ -14,6 +14,7 @@
|
|
14
14
|
### 該当のソースコード
|
15
15
|
|
16
16
|
```php
|
17
|
+
try{ $db=new SQLite3('wish.db');
|
17
18
|
function search(){
|
18
19
|
$search=explode("#",$row[2],5);
|
19
20
|
for($i;$i<count( $search);$i++)
|
@@ -28,5 +29,7 @@
|
|
28
29
|
' <li> '.$row[5].'</li>'. ' <li> '.$row[6].'</li>'.
|
29
30
|
' <li> '.$row[7].'</li>'. ' <li> '.$row[8].'</li>'.
|
30
31
|
' <li> '.$row[9].'</li>'. ' <li> '.$row[10].'</li>'.'</a>'.'</ul>'.'</div>';}
|
31
|
-
|
32
|
+
}
|
33
|
+
catch (PDOException $e) {
|
34
|
+
echo 'エラーが発生しました: ' . $e->getMessage();
|
32
35
|
```
|