diff --git a/shop/price/feedtest.xml b/shop/price/feedtest.xml new file mode 100644 index 000000000..e955cdd2c --- /dev/null +++ b/shop/price/feedtest.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/shop/price/google_feed.php b/shop/price/google_feed.php new file mode 100644 index 000000000..77e0314f9 --- /dev/null +++ b/shop/price/google_feed.php @@ -0,0 +1,30 @@ + '0' order by ca_id"; +$result = sql_query($sql); + +$xml = array(); +$xml['rss'] = "version=\"2.0\" xmlns:g=\"http:base.google.com/ns/1.0\""; +$xml['channel'] = array( + "title" => "타이틀", + "link" => "링크", + "description" => "몰?루" +); + +$items = array(); +while($row = sql_fetch_array($result)) { + $items['title'] = $row['it_name']; + $items['link'] = G5_SHOP_URL.'/item.php?it_id='.$row['it_id']; + $items['description'] = $row['it_basic']; + // $items['g:image_link'] = G5_DATA_PATH.'/item/'.$row[''] +} + +header('Content-type: text/xml'); +echo "\n"; + +?> \ No newline at end of file