Access certain Entry in HTML-Table and pass the entry-data in WP not working [closed]

Try making your foreach loop like this one and let me know the result. It should solve your it is only the ID of the last entry passed (the last ID inserted) issue

foreach ($dataSet as $tableSet) {
        $tableLayout .= '<tr>' . '<td>' . $counter . '</td>' . '<td>' . $tableSet->name . '</td>' . 
    '<td><input type="hidden" name="dropEntry" value="' . $tableSet->id .'">' .
    '<button type="submit">Delete</button>'
    . '</input>' . '</tr>';
    $counter = $counter + 1;
}