質問編集履歴
3
修正変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
$post_title = $row['post_title'];
|
34
34
|
|
35
|
-
$post_t
|
35
|
+
$post_author = $row['post_author'];
|
36
36
|
|
37
37
|
?>
|
38
38
|
|
2
修正・編集しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
$query = "SELECT * FROM posts WHERE category_id = $category_id ORDER BY post_id DESC LIMIT 0, 5";
|
24
24
|
|
25
|
-
$posts_query = mysqli_query($co, $query);
|
25
|
+
$posts_query = mysqli_query($con, $query);
|
26
26
|
|
27
27
|
|
28
28
|
|
@@ -30,7 +30,9 @@
|
|
30
30
|
|
31
31
|
$post_id = $row['post_id'];
|
32
32
|
|
33
|
-
$post_title = $row['post_title']
|
33
|
+
$post_title = $row['post_title'];
|
34
|
+
|
35
|
+
$post_title = $row['post_author'];
|
34
36
|
|
35
37
|
?>
|
36
38
|
|
@@ -106,7 +108,7 @@
|
|
106
108
|
|
107
109
|
for($i = 1; $i <= $count; $i++){
|
108
110
|
|
109
|
-
echo "<li><a href='category.php?category=$cat_id
|
111
|
+
echo "<li><a href='category.php?category=$category_id&page={$i}'>{$i}</a></li>";
|
110
112
|
|
111
113
|
}
|
112
114
|
|
1
見やすくしました
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
全ソースコードは下記です
|
8
8
|
|
9
|
-
|
9
|
+
```
|
10
10
|
|
11
11
|
//カテゴリ一覧表示
|
12
12
|
|
@@ -114,4 +114,4 @@
|
|
114
114
|
|
115
115
|
</ul>
|
116
116
|
|
117
|
-
|
117
|
+
```
|