i'm having some troubles using Dom simple parser, I would like to get some values from a table in a html file, i want only values in td that has id='ok'.
I mean:
<tr>
<td id="no"> 18 </td>
<td id="yes"> 19 </td>
<td id="maybe"> 20 </td>
<td id="ok"> 21 </td> ---- i only want this value
<tr>
<tr>
<td id="no"> 18 </td>
<td id="yes"> 19 </td>
<td id="maybe"> 20 </td>
<td id="no"> 25 </td>
<tr>
i'm trying to use this code:
$ret = $html->find('td[id='ok']');
but it seems it doesn't work. Anyone has an idea?