$table = $html->find('table', 0); // ID LOCK IE TABLE 0 (first table) Get the first table ?? foreach($table ->find('tr') as $tr) { // Foreach row in the table! if($td = $tr->find('td', 0)) { $Ex_Date = $td->plaintext; // Find the first TD (starts with 0) // ... and so on for each variable