Autor | Zpráva | ||
---|---|---|---|
xxxadam577 Profil |
#1 · Zasláno: 29. 9. 2016, 18:04:22
Dobrý den,
mám html tabulku <tr><td>1.</td><td>Pelhřimov</td><td>22</td><td>21</td><td>0</td><td>1</td><td> 98: 18</td><td>63</td><td> </td><td>( 30)</td></tr> <tr><td colspan=10 height=1></td></tr> <tr><td>2.</td><td>SFK Vrchovina</td><td>22</td><td>17</td><td>2</td><td>3</td><td> 74: 22</td><td>53</td><td> </td><td>( 20)</td></tr> <tr><td colspan=10 height=1></td></tr> <?php header("content-type: text/html; charset=utf-8"); $url = "http://nv.fotbal.cz/domaci-souteze/kao/vysocina/souteze.asp?soutez=610E1A"; $zero = 0; $f = file_get_contents($url); $f = iconv("ISO-8859-2", "UTF-8", $f); $table = preg_match("~TABULKA</td></tr>(.+?)</table>~s", $f, $out); $ourTable = '<table class="gdlr-small-league-table">' . strip_tags($out[1], "<td>,<tr>,<table>,<th>") . '</table>'; $ourTable = str_replace(array(' bgcolor="#aaaaaa"', ' bgcolor="#aaaaaa"', ' bgcolor="#f8f8f8"', ' bgcolor="#ffffff"'), array(''), $ourTable); echo $ourTable; ?> |
||
bestik_63 Profil |
#2 · Zasláno: 30. 9. 2016, 00:37:01
ahoj,
nebylo by lepí použít funkce PHP DOM? |
||
Taps Profil |
#3 · Zasláno: 30. 9. 2016, 08:12:18
A na co konkretne potrebujes ty id?
|
||
Časová prodleva: 8 let
|
0