문제

ok i've been reading up on simple php html dom and so far it works great.

I have a table which i'm trying to convert to a mysql db.

I'm using this:

foreach($html->find('TR') as $row) {
  etc.etc.etc.
}

my table:

 <TR BGCOLOR="CCDDFF">
      <TD valign="top">
</TD>
</TR>

but how do i get the bgcolor from the tr ?

도움이 되었습니까?

해결책

Did you try the $row->getAttribute('bgcolor') method?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top