Php parsing table does not return the full list of elements -


i tried parse web page php, not return integer result of table, part. last player returns ramsey, aron ... other name loaded after web page. can me? want list of players...

$data1=file_get_contents('http://it.soccerwiki.org/squad.php?clubid=1'); $doc=new domdocument(); @$doc->loadhtml($data1); $doc->preservewhitespace=false; $table=$doc->getelementsbytagname('table'); for($i=0;$i<$table->item(2)->childnodes->length;$i++) echo $table->item(2)->childnodes->item($i)->textcontent; 

the wrong result:

info   naz giocatore pos età val - martÍnez, damián1po2175- vermaelen, thomas2d(sc)2791- rosickÝ, tomáš256c(c),co(dsc)3288- bendtner, nicklas16384a(c)2588- walcott, theo4096co(d),a(dc)2491- gibbs, kieran2d,md,c(s)2388- wilshere, jack256c,co(c)2190- oxlade-chamberlain, alex1024co(dsc),a(ds)2088- afobe, benik16384a(c)2082- jenkinson, carl8d(d)2185- yennaris, nicholas8d(d),md(c)2075- jeffrey, anthony1024co,a(s)1875- arteta, mikel32md,c(c)3191- cazorla, santi256c(c),co(dsc)2892- monreal, nacho2d(s)2789- flamini, mathieu32md,c(c)2988- sagna, bacary8d(d)3091- koscielny, laurent4d(c)2790- diaby, abou32md,c,co(c)2789- giroud, olivier16384a(c)2690- sanogo, yaya16384a(c)2082- podolski, lukas1024co,a(sc)2891- mertesacker, per4d(c)2891- Özil, mesut1024co(dsc)2494- gnabry, serge1024co(dsc)1877- eisfeld, thomas256c,co(c)2075- frimpong, emmanuel32md,c(c)2183prs viviano, emiliano1po2789- miyaichi, ryo1024co,a(ds)2084- park, chu-young1024co,a(dsc)2887- fabiaŃski, lukasz1po2886- szczĘsny, wojciech1po2389- ramsey, aaron256c,co(dc)2288 

actually data right. there jquery sorting on page loaded. different player row places.

i copied html codes , removed js files, last player ramsey, aaron


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -