teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

4

コード修正

2020/11/16 21:00

投稿

cerfweb
cerfweb

スコア1907

answer CHANGED
@@ -10,7 +10,7 @@
10
10
  <tr>
11
11
  <?php endif; ?>
12
12
  <td>
13
- <a href="<?php print($json->items[$i]['path']); ?>"><img src="<?php print($json->items[$i]['path']); ?>"></a>
13
+ <a href="<?php print($json->items[$i]->path); ?>"><img src="<?php print($json->items[$i]->path); ?>"></a>
14
14
  </td>
15
15
  <?php if ($i % 8 == 7 || $i == $len - 1): ?>
16
16
  </tr>

3

コード修正

2020/11/16 21:00

投稿

cerfweb
cerfweb

スコア1907

answer CHANGED
@@ -10,7 +10,7 @@
10
10
  <tr>
11
11
  <?php endif; ?>
12
12
  <td>
13
- <a href="<?php print($json->items[$i]->path); ?>"><img src="<?php print($json->items[$i]->path); ?>"></a>
13
+ <a href="<?php print($json->items[$i]['path']); ?>"><img src="<?php print($json->items[$i]['path']); ?>"></a>
14
14
  </td>
15
15
  <?php if ($i % 8 == 7 || $i == $len - 1): ?>
16
16
  </tr>

2

コード修正

2020/11/16 20:56

投稿

cerfweb
cerfweb

スコア1907

answer CHANGED
@@ -10,7 +10,7 @@
10
10
  <tr>
11
11
  <?php endif; ?>
12
12
  <td>
13
- <a href="<?php print($items[$i]->path); ?>"><img src="<?php print($items[$i]->path); ?>"></a>
13
+ <a href="<?php print($json->items[$i]->path); ?>"><img src="<?php print($json->items[$i]->path); ?>"></a>
14
14
  </td>
15
15
  <?php if ($i % 8 == 7 || $i == $len - 1): ?>
16
16
  </tr>

1

コード修正

2020/11/16 20:50

投稿

cerfweb
cerfweb

スコア1907

answer CHANGED
@@ -10,7 +10,7 @@
10
10
  <tr>
11
11
  <?php endif; ?>
12
12
  <td>
13
- <a href="<?php print($item->path); ?>"><img src="<?php print($item->path); ?>"></a>
13
+ <a href="<?php print($items[$i]->path); ?>"><img src="<?php print($items[$i]->path); ?>"></a>
14
14
  </td>
15
15
  <?php if ($i % 8 == 7 || $i == $len - 1): ?>
16
16
  </tr>