最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Converting Google Spreadsheet to HTML Table - Stack Overflow

programmeradmin1浏览0评论

I have a Google spreadsheet with data that will be updated on a weekly basis. I need to bring this data into a HTML table on my website.

Rather than running it through a CSV to HTML converter each time and having to update the HTML code each time, is there a way for me to use PHP or Javascript to look up the Google Spreadsheet URL and convert the data to HTML Table tags without me needing to alter the code each time?

I have a Google spreadsheet with data that will be updated on a weekly basis. I need to bring this data into a HTML table on my website.

Rather than running it through a CSV to HTML converter each time and having to update the HTML code each time, is there a way for me to use PHP or Javascript to look up the Google Spreadsheet URL and convert the data to HTML Table tags without me needing to alter the code each time?

Share Improve this question asked Aug 2, 2012 at 10:18 wadeywadey 933 silver badges10 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 3

You may be interested in GD API (description concerning spreadsheets).

Default download format is html. Write a script and run in using CRON once a day to pull newest version of you document.

Open your spreadsheet, go to File > Download as > Web page (.html, current sheet)

That should open a link in a new window. This should automatically update when you reload the page after the data has been edited. In jQuery, you can use the .load function to load the data into your page.

发布评论

评论列表(0)

  1. 暂无评论