错误信息提示:
错误号:12142

错误原因:

错误SQL语句:
select * from user_skin where  find_in_set('sysai.net',replace(host,'|',','))

Warning: fopen(/error/2025-06-27.txt): failed to open stream: No such file or directory in /opt/lampp/htdocs/sysai/inc/datai.php on line 247
文件 2025-06-27.txt 不可写

sysai
『 456456 』
현재위치 : HOME > 자료실 > 456456
php xml读取
글쓴이 : manager 작성일 : 2013-09-27
<activities>
<act id="act_11" type="1" status="1">
<date>2011/06/01-2011/12/02</date>
<time>02:12-23:23</time>
<link>
<![CDATA[<a href="http://www.my4399.com">4399大活动开始喽</a>]]>
</link>
</act>
<act id="act_12" type="3" status="0">
<date>2011/06/01-2011/12/12</date>
<time>00:00-23:23</time>
<link>
<![CDATA[<a href="http://www.163.com">121333</a>]]>
</link>
</act>
<act id="act_12" type="1" status="0">
<date>2011/06/01-2011/12/12</date>
<time>00:00-23:23</time>
<link>
<![CDATA[<a href="http://www.163.com">121</a>]]>
</link>
</act>
</activities>
$act = $xml->getElementsByTagName('act');
上面这句只取出了所有act节点的集合
我要取出act所有节点中满足属性type="1"的,请问怎么弄呢?谢谢!

<?php
$xml = new DOMDocument();
$xml->load('1.xml');

$acts = $xml->getElementsByTagName('act');
$i = 0;
while($a = $acts->item($i)){
$type = $a->getAttribute('type');
if($type == 1){
echo $a->getElementsByTagName('link')->item(0)->nodeValue, '<br/>';
}
$i++;
}
?>
목록


홈으로 | 이용안내 | 이용약관 | 개인정보보호정책 | 제휴문의 | 질문과답변 | 자주하는 질문
Copyright © 2011 - 2014 SYSAI Work Group, All Rights Reserved 주소:길림성연길시,우편:133300 Version 3.0 Run Time 0.251s