From f7aac7c46746f86a0162c361d603e388c9bbfc05 Mon Sep 17 00:00:00 2001 From: loves2tu Date: Tue, 21 Dec 2021 04:40:23 +0000 Subject: [PATCH] =?UTF-8?q?=EA=B5=AC=EA=B8=80=20=ED=8C=90=EB=A7=A4?= =?UTF-8?q?=EC=9E=90=EC=84=BC=ED=84=B0=20=ED=94=BC=EB=93=9C=20=20-=20?= =?UTF-8?q?=EC=83=81=ED=92=88=20=EA=B4=80=EB=A0=A8=20query=20=EC=9E=91?= =?UTF-8?q?=EC=97=85=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/price/feedtest.xml | 23 +++++++++++++++++++++++ shop/price/google_feed.php | 30 ++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 shop/price/feedtest.xml create mode 100644 shop/price/google_feed.php 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