I have been trying to get specific table from other website. The code i used to get the page with curl can extract the entire page successfully. They have this table in their html code:
<table width="380" cellspacing="1" cellpadding="0" border="0" bgcolor="#cccccc" align="center">(...desired content...)</table>
Which is the only part i want from the entire page. Is there a proper way to get that?
I have been using:
if (preg_match('/<table width="380" cellspacing="1" cellpadding="0" border="0" bgcolor="#cccccc" align="center">(.*)<\/table/s', $response, $matches))
{
echo $matches[0];
}
which returns no result. Thank you for the help.