質問編集履歴

2

phpコードを追加しました。

2016/06/09 08:01

投稿

442ky119
442ky119

スコア207

test CHANGED
File without changes
test CHANGED
@@ -21,3 +21,11 @@
21
21
  printf( $html, $item->Name, $item->Property->Yomi, $item->Property->Address, $item->Property->Station->Railway, $item->Property->Station->Name . '駅',$item->Property->Price );
22
22
 
23
23
  ```
24
+
25
+
26
+
27
+ ```php
28
+
29
+ $url = 'http://search.olp.yahooapis.jp/OpenLocalPlatform/V1/localSearch?appid=' . $id . '&ac=' . $area .'&gc='. $ct.'&results=' . $item_per_page . '&start=' . $start '&detail=full' . '&price=' . $price;
30
+
31
+ ```

1

PHPを載せます。

2016/06/09 08:01

投稿

442ky119
442ky119

スコア207

test CHANGED
File without changes
test CHANGED
@@ -5,3 +5,19 @@
5
5
  と書くのはわかりますが、食べログやぐるナビみたいに禁煙か否かをセルとしてつまり<td>の中に表示するにはどうすればいいですか?
6
6
 
7
7
  レスポンスフィールドに禁煙か否かを表示するコードがないのでリクエストパラメータから取得するのではと考えたのですが、分からないので質問しました。
8
+
9
+ ```PHP
10
+
11
+ $html = '<tr><td>%1$s</td><td>%2$s</td><td>%3$s>%4$s</a></td><td>%5$s</td><td>%6$s</td></tr>';
12
+
13
+ $i = 1;
14
+
15
+
16
+
17
+ foreach ( $xml->Feature as $key => $item ) {
18
+
19
+
20
+
21
+ printf( $html, $item->Name, $item->Property->Yomi, $item->Property->Address, $item->Property->Station->Railway, $item->Property->Station->Name . '駅',$item->Property->Price );
22
+
23
+ ```