There are more than one hundred <tr> structured at the same way, which contain lots of <td>.I manage to loop with xpath to store all data in a database except one:the last <td> element.. i want the href attribute of the first <a>. So, in my example: "popup.asp?tp=2100&lang=en&idm=553759", but when i run my query, id variable retrieve a NULL value. Help!!
Looping with XPath in php to get tables values
in PHP
Posted · Edited by peppegiuseppe
I have this html table:
There are more than one hundred <tr> structured at the same way, which contain lots of <td>.I manage to loop with xpath to store all data in a database except one: the last <td> element.. i want the href attribute of the first <a>. So, in my example: "popup.asp?tp=2100&lang=en&idm=553759", but when i run my query, id variable retrieve a NULL value. Help!!
This is my php code, but I can not go on..