操作时点击删除连接时就会会获取到当前条目的id然后程序获取到当前id进行删除操作。
php教程
include("conn.php");
$query = "select * from new order by id desc";
$res = mysql教程_query($query);
while($rows =mysql_fetch_array($res)){ //将查询到结果拆到$rows数组中
?>
标题: [删除] [修改]
}
?>
del.php代码
$del = "delect from test where id in ($tid)";
$res = mysql_query($del);
if($res){
echo "删除成功";
}else{
echo "删除失败";
}
?>相关文章
精彩推荐