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> ....