久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php如何快速刪除文章

      php快速刪除文章的方法:首先在文章列表頁(yè)面;然后將多選筐命名為“$del_id[]”,值為文章ID號(hào);最后處理頁(yè)面,代碼為【$del_num=count($del_id)】。

      php如何快速刪除文章

      【相關(guān)學(xué)習(xí)推薦:php編程(視頻)】

      php快速刪除文章的方法:

      1、首先在文章列表頁(yè)面(list.php),將多選筐命名為:“$del_id[]”,值為文章ID號(hào)。

      例如(list.php):

        <form name="del_form" action="del.php" method="post">   <?php         $result=mysql_query("select * from news");         while($rs=mysql_fetch_array($result)){      ?>         <input name="del_id[]" type="checkbox" id="del_id[]" value="<?=$rs[id]?>" /><?=$rs[title]?>      <?php         }      ?>    </form>

      2、處理頁(yè)面(del.php):

        <?php      if($del_id!=""){              $del_num=count($del_id);              for($i=0;$i<$del_num;$i++){                  mysql_query("Delete from news where id='$del_id[$i]'");              }               echo("<script type='text/javascript'>alert('刪除成功!');history.back();</script>");       }else{              echo("<script type='text/javascript'>alert('請(qǐng)先選擇項(xiàng)目!');history.back();</script>");       }     ?>

      想了解

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)