在网站Goal.com上有一个表格,我已经附上了这个问题。我想知道如何将播放器名称列中的字符串以某种方式存储到变量或数据库中。从网站表中提取数据
原因是因为我的代码中有一个变量,名为$player
。该变量每24小时存储一次不同的字符串,并打印到我的网站上。这是通过使用自定义功能完成的。
我想编码if '$player' is equal to any string in the column 'Player Name' from goal.com
,重新运行该函数,以便不同的字符串存储在变量中并打印在我的网站上。
表:http://www.goal.com/en/scores/transfer-zone?ICID=TZ_DD1_VA
'SELECT player_name FROM myTable' ?? – AdamMc331
您可能想要研究如何使用PHP解析HTML。这是一个[示例问答](http://stackoverflow.com/questions/3577641/how-do-you-parse-and-process-html-xml-in-php)。更具体地说,这是另一个[问答讨论解析一个HTML表格](http://stackoverflow.com/questions/8816194/how-to-parse-html-table-using-php)。 – lurker
谢谢,我去看看 – FutProgrammer