how to get content from a table id in simple html dom parser, the table id is products and i have tried with this code:

<?php
include("dom.php");
$html = file_get_html("http://www.example.com");
$result = $html->find('table[id=products]');
echo "$result";
?>

but don't works, any idea to fetch content of a table which id is products? Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.