Показать сообщение отдельно

  #6  
Старый 25.07.2008, 15:07
DTW
Участник форума
Регистрация: 11.05.2008
Сообщений: 202
Провел на форуме:
420713

Репутация: 104
По умолчанию

Помогите понять что делаю не так
мне надо разбить на карманы .

Цитата:
$html = ' <table width="100%" border="0">

<tr>
<th rowspan="5" scope="row"><img src=components/com_userstat/3_m.gif width="100" height="100" /></th>
<th scope="row"><div align="right"><strong>Name:</strong></div></th>
<td>Lotto</td>
</tr>
<tr>
<th scope="row"><div align="right"><strong>Profession:</strong></div></th>

<td>Archer</td>
</tr>
<tr>
<th scope="row"><div align="right"><strong>Base lvl: </strong></div></th>
<td>40</td>
</tr>
<tr>

<th scope="row"><div align="right"><strong>Job lvl:</strong> </div></th>
<td>27</td>
</tr>
<tr>
<th scope="row"><div align="right"><strong>Guild:</strong></div></th>
<td></td>
</tr>


</table>' ;
PHP код:
$pat '#<table .*><tr>|<th .*><img .*><\/th>|<th .*><div .*><strong>(.*)<\/strong><\/div><\/th>|<td>(.*)<\/td><\/tr><\/table>#si';
 
  
preg_match($pat,$html,$poc); 
 
Ответить с цитированием