0
if ($rows->length > 0)
{
for ($i=1; $i<=$rows->length ; $i++)
{
//echo($rows[$i]->getElementsByTagname('th'));
$cols = $rows->item($i)->getElementsByTagname('td');
for ($j=0; $j <$cols->length ; $j++)
{
//echo($cols[$j]->nodeValue);
$input_lines = $cols[$j]->nodeValue;
$input_lines = preg_replace("/\D/", "", $input_lines);
echo $input_lines;
echo"<br><br>";
}
}
}
Fatal error: Call to a member function
getElementsByTagname()
on null치명적인 오류 : 널 (null)에 멤버 함수 getElementsByTagname()를 호출
은 객체 메소드 또는 속성 인'$ rows-> item'입니까? –
echo $ rows-> item ($ i)을 표시 할 수 있습니까? ? – akbansa