Hey,
I need to get the table data in this url “http://www.federalreserve.gov/releases/h10/current/”, please help me with a working code. Many thanks
Hey Shebeer,
What have you tried so far?
Try using the Tidy library
<?php
include "simple_html_dom.php";
$url = 'http://www.freelancer.com/jobs/Website-Design/1/';
$html = file_get_html($url);
foreach($html->find('table#statistics thead tr') as $i=>$tr) {
if ($i==0) {
continue;
}
echo "<br/>\$i=".$i;
$anchor = $tr->find('td', 0);
echo " => ".$anchor;
}
$html->clear();
unset($html);
?>
the code i have given above , but the output is not getting. please help me out
can you please explain a bit more thanks
There’s no table#statistics
on the page that you’re parsing.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.