Devam Ediyor

php coding help

I have the attached code. When this code runs, sometimes the target page is missing a specific <span> tag and causes an error. I would like for this code to be altered to where if the specific <span> tag is not found, for it to jump to this part of the code.

$sql = "update page_category set category_tag = 1 where id ='".$cateid."'";

This way it will continue to run without my input.

The part it is not finding is this:

$total = $html->find('h2.results-summary',0)->find("span",1)->plaintext;

Let me know if there are any questions.

Beceriler: MySQL, PHP

Daha fazlasını görün: help find , find help, code coding, php coding, H2, coding help, php tag, update sql html, php sql update, help set, sql coding, php sql html, coding html page, coding sql, php code error, html mysql php, page coding, coding html, sql update, code help, mysql php input, php html page mysql, jump run, sql update code, update code php

İşveren Hakkında:
( 16 değerlendirme ) Charleston, United States

Proje NO: #736724

Seçilen:

abraham66

i can fix it

0 gün içinde 39$ USD
(98 Değerlendirme)
6.8