How to put block without a class ID?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
19 views
The book in the library catalog:
5aee044f02d57020636159.png
I need to put main title. How to do it correctly?
5aee04bfaf207905043054.png

While doing so:
require 'simple_html_dom.php'; // Create DOM from string with HTML code mark-view $html = str_get_html($htmlMarc); // Run all  on the page, find the desired foreach($html->find('td') as $element) { if ($a == 1) { echo $element->plaintext; return; } if ($element->plaintext == 'Main title') $a = 1; }
by | 19 views

2 Answers

0 like 0 dislike
don't need no libraries left, no extra strums - use xpath luke)

$doc = new DOMDocument(); @$doc->loadHTMLFile('http://catalog.mgdb.ru:49001/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=31737'); $xpath = new DOMXpath($doc); echo $xpath->query("//tr[td='Main title']/td[2]")[0]->nodeValue;
by
0 like 0 dislike
Well, that's about what to do, to cling to what is - for the text of the left column.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
asked May 22, 2019 by Orbite
110,608 questions
257,187 answers
0 comments
40,796 users