execute();&"/> execute();&">
Home > Backend Development > PHP Tutorial > 两个dd写一样的循环代码,内中一个不被执行是吗

两个dd写一样的循环代码,内中一个不被执行是吗

WBOY
Release: 2016-06-13 11:42:25
Original
834 people have browsed it

两个dd写一样的循环代码,其中一个不被执行是吗?
两个dd写一样的循环代码,其中一个dd显示为空白

<br />$ztzs=$dbc->prepare("select * from naszt where 1=1 and zttype='威联通'");<br />$ztzs->execute();<br /><br /><br /> <dd><br />	      <?php while($row=$ztzs->fetch()){?><br />	      <div class="ztzs"><br />                <a href="ztselect.php?id=<?php echo $row["id"]?>" target="_blank"> <br />				 <img  src="ztImg/<?php echo $row["headimg"] ? alt="两个dd写一样的循环代码,内中一个不被执行是吗" >"><br />				   </a><br />				      <p><?php echo $row['ztname'] ?></p><br />					    </div> <br />          <?php } ?><br />	</dd> <br /><br /><dd><br />	      <?php while($row=$ztzs->fetch()){?><br />	      <div class="ztzs"><br />                <a href="ztselect.php?id=<?php echo $row["id"]?>" target="_blank"> <br />				 <img  src="ztImg/<?php echo $row["headimg"] ? alt="两个dd写一样的循环代码,内中一个不被执行是吗" >"><br />				   </a><br />				      <p><?php echo $row['ztname'] ?></p><br />					    </div> <br />          <?php } ?><br />	</dd><br /><br /><br /><br /><br /><br /><br />
Copy after login



在页面上时候其中一个dd比显示任何数据!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template