这个怎么办啊

http://img.mukewang.com/566158a700019b5d13660127.jpg这个怎么办啊


<h1 align="center">新闻发布系统</h1>


<div align="center">

<TABLE border="1" align="center">

<TR align="center">

<TD>ID</TD>

<TD>删除</TD>

</TR>

<?php

include "tool.php";

include "db.php";


$sql="select newsID,newsTitle,newsContents,newsDate from tb_news order by newsID";

$rs=dbread($sql);


echo "目前共有".mysql_num_rows($rs)."条记录";

while($row=mysql_fetch_array($rs))

{

?>

<tr align="center">

<td><?php echo $row["newsID"]; ?></td>

<td><?php echo $row["newsTitle"]; ?></td>

<td><?php echo $row["newsContents"]; ?></td>

<td><?php echo $row["newsDate"]; ?></td>

</tr>

<?php

}

?>



</TABLE>

<a href="insert.php">数据录入</a>

</div>


QCW_
浏览 1911回答 2
2回答

QCW_

<h1 align="center">新闻发布系统</h1> <div align="center"> <TABLE border="1" align="center"> <TR align="center"> <TD>ID</TD> <TD>删除</TD> </TR> <?php include "tool.php"; include "db.php"; $sql="select newsID,newsTitle,newsContents,newsDate from tb_news order by newsID"; $rs=dbread($sql); echo "目前共有".mysql_num_rows($rs)."条记录"; while($row=mysql_fetch_array($rs)) { ?> <tr align="center"> <td><?php echo $row["newsID"]; ?></td> <td><?php echo $row["newsTitle"]; ?></td> <td><?php echo $row["newsContents"]; ?></td> <td><?php echo $row["newsDate"]; ?></td> </tr> <?php } ?> </TABLE> <a href="insert.php">数据录入</a> </div>

晚安sp

代码贴出来啊
打开App,查看更多内容
随时随地看视频慕课网APP