I'm in need of some assistance. I'm trying to scrape some specify data from a website.
<tbody>
<tr style="mso-yfti-irow: 1;">
<td style="width: 184.4pt; border: none; border-left: solid windowtext 1.5pt; padding: 0cm 5.4pt 0cm 5.4pt;" valign="top" width="307">
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;">Certifikat springer 1000m</p>
</td>
<td style="width: 44.7pt; border: none; border-right: solid windowtext 1.5pt; padding: 0cm 5.4pt 0cm 5.4pt;" valign="top" width="75">
<p class="MsoNormal" style="margin-bottom: .0001pt; text-align: right; line-height: normal;" align="right">90,-</p>
</td>
</tr>
<tr style="mso-yfti-irow: 2;">
<td style="width: 184.4pt; border: none; border-left: solid windowtext 1.5pt; padding: 0cm 5.4pt 0cm 5.4pt;" valign="top" width="307">
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal;">Certifikat springer 1200m</p>
</td>
<td style="width: 44.7pt; border: none; border-right: solid windowtext 1.5pt; padding: 0cm 5.4pt 0cm 5.4pt;" valign="top" width="75">
<p class="MsoNormal" style="margin-bottom: .0001pt; text-align: right; line-height: normal;" align="right">100,-</p>
</td>
</tr>
</tbody>
what I want is to get the "Certifikat springer 1000" from mos-yfti-irow1 and the 90,- from the next TD. but I don't want to get the data from mos-yfti-irow2 in this output.
I'm want to build something where people can compare prices on some activities on our sports group with different clubs. I'm not really sure how to.
This is what I have for now, but can't really get it to work
<?php
$file_string = file_get_contents('http://www.mfkviborg.dk/index.php? option=com_content&view=article&id=21&Itemid=151');
preg_match_all('/<p class="MsoNormal" style="margin-bottom: .0001pt;(.*)">(.*)<\/p>/i', $file_string, $links);
?>
<p><strong>Links:</strong> <em>(Name - Link)</em><br />
<?php
echo '<ol>';
for($i = 0; $i < count($links[1]); $i++) {
echo '<li>' . $links[2][$i] . ' - ' . $links[1][$i] . '</li>';
}
echo '</ol>';
?>
</p>
Any clues?