質問編集履歴
2
phpコードを追加しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,4 +9,8 @@
|
|
9
9
|
foreach ( $xml->Feature as $key => $item ) {
|
10
10
|
|
11
11
|
printf( $html, $item->Name, $item->Property->Yomi, $item->Property->Address, $item->Property->Station->Railway, $item->Property->Station->Name . '駅',$item->Property->Price );
|
12
|
+
```
|
13
|
+
|
14
|
+
```php
|
15
|
+
$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;
|
12
16
|
```
|
1
PHPを載せます。
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
例えば、分煙で喫煙可な場所且つ駐車場がある店舗を探したい場合は
|
2
2
|
http://search.olp.yahooapis.jp/OpenLocalPlatform/V1/localSearch?appid=xxxx&smoking=2,3&parking=true
|
3
3
|
と書くのはわかりますが、食べログやぐるナビみたいに禁煙か否かをセルとしてつまり<td>の中に表示するにはどうすればいいですか?
|
4
|
-
レスポンスフィールドに禁煙か否かを表示するコードがないのでリクエストパラメータから取得するのではと考えたのですが、分からないので質問しました。
|
4
|
+
レスポンスフィールドに禁煙か否かを表示するコードがないのでリクエストパラメータから取得するのではと考えたのですが、分からないので質問しました。
|
5
|
+
```PHP
|
6
|
+
$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>';
|
7
|
+
$i = 1;
|
8
|
+
|
9
|
+
foreach ( $xml->Feature as $key => $item ) {
|
10
|
+
|
11
|
+
printf( $html, $item->Name, $item->Property->Yomi, $item->Property->Address, $item->Property->Station->Railway, $item->Property->Station->Name . '駅',$item->Property->Price );
|
12
|
+
```
|