Is it possible to pass the sum of a column from an HTML table on a DIFFERENT website to a db?

Ryan_W4588

This question probably was worded more complicating than it actually is.

So, basically I am trying to find the "total of column Z" based on reports given to a different website. These reports are given in HTML table form. This website I have no access to. Is it possible, for instance, for me to sum the column of the html table (maybe put in an iframe?) without having access to its source, but while knowing the table ID?

NOTE: I am using HTML, PHP currently (obviously I'm pretty newbie). I don't have much knowledge of java/javascript/jquery, but if it is necessary to complete this task I will learn up! My goal is to send the values of the totals to an Oracle 11g Database, if that makes the problem easier to solve.

I wanted to make sure this is possible before I waste my time trying it. I don't have much time as it is lol.

Example:

Table from "www.website.com"

     H1   |  H2  |  H3  |  H4
V1:1 | V1:2 | V1:3 | V1:4
V2:1 | V2:2 | V2:3 | V2:4
V2:1 | V2:2 | V2:3 | V2:4
V2:1 | V2:2 | V2:3 | V2:4

My goal:

$sum1 = <SUM OF ALL V IN COLUMN H2>;

TIA!

GolezTrol

If your question is: "Can I fetch an HTML page, parse its contents, calculate a value from them and save that in a database?" then, Yes, this is possible.

The biggest problem might be getting the contents of another page. I don't think you can easily fetch the contents of an IFrame. Maybe the best solution is to fetch the page in PHP (using curl, for instance).

After that, you can decide whether to do the parsing in PHP as well, or use the more powerful jQuery for that. In case of jQuery you might even run it server side if you have node.js. If you don't, you would have to send the contents to your client for parsing, learn jQuery to parse it, and send it back for storing. Doesn't sound too good. I would keep the parsing server side as well.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Using date from one table in a where clause with a column in a different table

来自分类Dev

Select rows with dynamic names from different table as column name in new table matched by articleId

来自分类Dev

Mapping a column of a table to different class using Rails

来自分类Dev

Assign a value to select list (in a table) from a DB

来自分类Dev

SQL Server: Insert Multiple Rows to a table based on a column in a different table

来自分类Dev

Excel: Is it possible to Lookup multiple values in a different sheet and use the Sum function to add them together?

来自分类Dev

XPath read values from sql table column

来自分类Dev

How to retrieve sum of 5 top score from a table in mysql

来自分类Dev

DB2 Select Value from final table DELETE

来自分类Dev

Informatica - How to Pass queries from a table to SQL Transformation and get the results

来自分类Dev

同时更新特定的db-table-row-column的最佳实践是什么?

来自分类Dev

How does data.table get the column name from j?

来自分类Dev

SELECT column_name FROM(选择TABLE_NAME FROM TABLE_OF_TABLES)

来自分类Dev

How to select only non-zero values from multiple table conditional sum query

来自分类Dev

相当于SELECT * FROM table WHERE column1 = column2的熊猫

来自分类Dev

Copying over part of a table from SQL Server to Aurora DB (Based on MySQL by AWS)

来自分类Dev

使用原始查询,例如DB :: select(“ SELECT * FROM table”);,需要数组而不是laravel中的对象。

来自分类Dev

Sum last X column values into new column

来自分类Dev

DB :: Table和DB :: Select之间的区别

来自分类Dev

Is there a in built method from python csv module to enumerate all possible value for a specific column?

来自分类Dev

从sum将可选值插入db列

来自分类Dev

Is it possible to use different view resolvers?

来自分类Dev

Vue element-ui <el-table-column>格式化程序–如何显示html?

来自分类Dev

Is it possible to add a list to an irregular column?

来自分类Dev

mysql: How can list 2 different condition, ordering, and limit requirements from one table?

来自分类Dev

Table column with zero width

来自分类Dev

Table - Replace values of a column

来自分类Dev

video html5: Is it possible to display thumbnail from video on a specific time?

来自分类Dev

Not getting a result from DB

Related 相关文章

  1. 1

    Using date from one table in a where clause with a column in a different table

  2. 2

    Select rows with dynamic names from different table as column name in new table matched by articleId

  3. 3

    Mapping a column of a table to different class using Rails

  4. 4

    Assign a value to select list (in a table) from a DB

  5. 5

    SQL Server: Insert Multiple Rows to a table based on a column in a different table

  6. 6

    Excel: Is it possible to Lookup multiple values in a different sheet and use the Sum function to add them together?

  7. 7

    XPath read values from sql table column

  8. 8

    How to retrieve sum of 5 top score from a table in mysql

  9. 9

    DB2 Select Value from final table DELETE

  10. 10

    Informatica - How to Pass queries from a table to SQL Transformation and get the results

  11. 11

    同时更新特定的db-table-row-column的最佳实践是什么?

  12. 12

    How does data.table get the column name from j?

  13. 13

    SELECT column_name FROM(选择TABLE_NAME FROM TABLE_OF_TABLES)

  14. 14

    How to select only non-zero values from multiple table conditional sum query

  15. 15

    相当于SELECT * FROM table WHERE column1 = column2的熊猫

  16. 16

    Copying over part of a table from SQL Server to Aurora DB (Based on MySQL by AWS)

  17. 17

    使用原始查询,例如DB :: select(“ SELECT * FROM table”);,需要数组而不是laravel中的对象。

  18. 18

    Sum last X column values into new column

  19. 19

    DB :: Table和DB :: Select之间的区别

  20. 20

    Is there a in built method from python csv module to enumerate all possible value for a specific column?

  21. 21

    从sum将可选值插入db列

  22. 22

    Is it possible to use different view resolvers?

  23. 23

    Vue element-ui <el-table-column>格式化程序–如何显示html?

  24. 24

    Is it possible to add a list to an irregular column?

  25. 25

    mysql: How can list 2 different condition, ordering, and limit requirements from one table?

  26. 26

    Table column with zero width

  27. 27

    Table - Replace values of a column

  28. 28

    video html5: Is it possible to display thumbnail from video on a specific time?

  29. 29

    Not getting a result from DB

热门标签

归档