hello i done a code i need some help :) it keep give me nothing , no result
ok here the code
<?php
$f=' <tr class="hover">
<td class="ra " >3.</td>
<td class="pla " ><a href="spieler.php?uid=3010">الـعـاصـفـة</a> </td>
<td class="al " ><a href="allianz.php?aid=127">|BRAVE|</a></td>
<td class="pop " >2519</td>
<td class="vil " >6</td>
</tr>
<tr class="hover">
<td class="ra " >3.</td>
<td class="pla " ><a href="spieler.php?uid=4292">LOOK</a> </td>
<td class="al " ><a href="allianz.php?aid=127">|BRAVE|</a></td>
<td class="pop " >2001</td>
<td class="vil " >5</td>
</tr>
<tr class="hover">
<td class="ra " >4.</td>
<td class="pla " ><a href="spieler.php?uid=2784">بو سعود</a> </td>
<td class="al " ><a href="allianz.php?aid=127">|BRAVE|</a></td>
<td class="pop " >1966</td>
<td class="vil " >5</td>
</tr>';
preg_match_all ("/<td class=\"pla \" ><a href=\"spieler.php?uid=(.*)\">(.*)<\/a> <\/td>/", $f, $result , PREG_SET_ORDER);
// putting data to array
foreach($result as $item){
$player=$item[2];
$text = "$player
";
print $text;
}
?>
Can some one tell me what is the wrong ? and show mw how to fix it ? thanks alot
?and.in the pattern.