?? ??
??????? ???? ??? ? ? ???? ??????? ???? ????? ???.
?? ??????? ?? ???? ????? ??????? ???? ???. ?? ????? ?????? ?? ??? ???? ?? ?? ????. ?? ??? ?? ??? ?? ??????? ??? ?? ??? ?????.
<?php session_start(); header("content-type:text/html;charset=utf-8"); require 'config.php'; ?>
? ??? ??? config.php? ???? ?? ?????.
?? ??? ???????? ???? ???? ?? ???? ??? ?? ???? ???? ????.
<?php $SQL = "select * from list";//設(shè)置查詢指令 $result=mysqli_query($link,$SQL);//執(zhí)行查詢 ?>
?? ??? ????? ???? ?? ????? ???? ??? ?????.
<?php while($row=mysqli_fetch_assoc($result)) ?> <tr> <td style="text-align:left; padding-left:20px;"><input type="checkbox" name="id" value="" /><?php echo $row['id'];?></td> <td><span><?php echo $row['author'];?></span></td> <td width="10%"><img src="<?php echo $row['image'];?>" alt="" width="70" height="50" /></td> <td width="30%"><span><?php echo $row['content'];?></span></td> <td><span>首頁</span></td> <td><span><?php echo $cat_array[$row['cid']];?></span></td> <td><span>2016-07-01</span></td> <td><div class="button-group"> <a class="button border-main" href="edit.php?id=<?php echo $row['id']?>"> <span class="icon-edit"></span> 修改</a> <a class="button border-red" href="del.php?idD=<?php echo $row['id']?>" onclick="return del(1,1,1)"> <span class="icon-trash-o"></span>刪除</a> </div> </td> </tr> <?php endwhile;?>
??? ?? ???? ??? ??? ???? ???? ???.
??? ?? ?? ??? $row? ???? while ??? ?? ?????. <?php echo $row['']?> ???? ????? ???? ?? ???? ???????. ??? ????? ???? ???????.
?? ????? ??? ? ??? ??? ?? ???????.