<?php require_once('../connect.php'); $sql = "select * from article order by id"; $query = mysqli_query($con,$sql); if($query&&mysqli_num_rows($query)){ while($row =mysqli_fetch_assoc($query)){ $data[] = $row; } }else{ $data = array(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> <style type="text/css"> body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } </style> </head> <body> <table width="100%" height="520" border="0" cellpadding="8" cellspacing="1" bgcolor="#000000"> <tr> <td width="156" height="287" align="left" valign="top" bgcolor="white"> <p style="text-align:center"><a href="zhuye.php">退出登录</a></p> </td> <td width="1000" valign="top" bgcolor="#FFFFFF"> <table width="980" border="0" cellpadding="8" cellspacing="1" bgcolor="#000000"> <tr> <td colspan="6" align="center" bgcolor="#FFFFFF">管理列表</td> </tr> <tr> <td width="50" bgcolor="#FFFFFF">楼层</td> <td width="100" bgcolor="#FFFFFF" style="text-align:center">昵称</td> <td width="500" bgcolor="#FFFFFF" style="text-align:center">内容</td> <td width="130" bgcolor="#FFFFFF" style="text-align:center">发布时间</td> <td width="200" bgcolor="#FFFFFF" style="text-align:center">回复</td> <td width="100" bgcolor="#FFFFFF" style="text-align:center">操作</td> </tr>