execute("/> execute(">

Home >Backend Development >PHP Tutorial > 两个dd写一样的循环代码,内中一个不被执行是吗

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

WBOY
WBOYOriginal
2016-06-13 12:31:37958browse

两个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 />



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

Statement:
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