phpquery

    0熱度

    1回答

    如何從最終訂單中獲取元素? 例如,我需要從最後獲得第二項。但4而不是 <?php $html = <<<EOD <div style="text-align: center;" class="navigation"> <span class="pagination"> <span>« novější</span> | <span>1</span>

    0熱度

    2回答

    我想要使用PHPQuery在給定頁面上獲取包含特定URL頁面的所有鏈接。我正在使用PHPQuery的PHP支持語法。 include_once 'phpQuery.php'; $url = 'http://www.phonearena.com/phones/manufacturer/'; $doc = phpQuery::newDocumentFile($url); $urls = $do

    0熱度

    2回答

    你好那裏我有PHP的查詢,從數據庫中取出記錄與條件我有四個網頁在網站我想從數據庫中獲取數據,內容從數據庫通過鏈接這是我的查詢,這不是工作 前綴已經在配置文件中 $prefix = 'v1_'; $link = $p['link'] ; $data_query = $db->query(" SELECT * FROM ".$prefix.$key." WHER

    1熱度

    3回答

    有類似HTML的 <h3>Specifications</h3> <div class="row"> some text </div> <div class="row"> some text 2 </div> <div class="row"> some text 3 </div> <div class="detail-anchor" id="pricing"></div> <div c

    1熱度

    2回答

    我開發了一個小腳本來更新兩個表中的一些字段。查詢運行時沒有錯誤,但由於任何原因,這些字段上沒有任何事情發生。我肯定有些東西被我忽略了,但我不知道是什麼。任何想法? <?php //connection to the database $connect=mysql_connect("localhost","xxxxxx","xxxxxxxxx") or die("Unable to Conne

    0熱度

    1回答

    我的PHP庫phpQuery內容解析器的大風扇(因爲它很喜歡jQuery的,同時採用了PHP DOMDocument提取標記),但我注意到有特定元素的錯誤與快速關閉事件<img />,而不是<div></div> 我已經注意到這個錯誤也發生在DOMDocument以及phpQuery。 我寫了一個簡單的類PhpContentDocument來轉儲一個簡單的html文檔。 require_once

    -1熱度

    2回答

    嗨我有一個變量值我想在循環開始時不是總是第一次添加這個值。例如 <?php $balance = 100; while($row = mysql_fetch_array($query) { echo $row['amount'] + $balance; // for example $row['amount'] is 50, 20 , 30;

    0熱度

    1回答

    我有一個HTML文件,像這樣的表: <tr valign="top" class="dselbkg" onMouseOver="this.className='selbkg'" onMouseOut="this.className='dselbkg'" > <td height="20" align="center">1</td> <td height="20"><div al

    1熱度

    2回答

    我使用phpQuery分析一個網站: HTML例如: <div class="post" id="1232323"> <div class="title">Example</div> <div class="text">texttexttext</div> </div> 我可以在標題和文本,但不能從div.post找到ID。 $document = phpQuery::n

    0熱度

    1回答

    我有一個解析html頁面的腳本。一個部分分析各種tr元素。假設我們有一個TR結構是這樣的: <tr class="a test" style="display: none;"> <td class="numeric"></td> <td class="date">1/1/16</td> <td class="numeric">$2.65</td> ....