📜  使用 php 代码示例从数据库中删除一行

📅  最后修改于: 2022-03-11 14:53:48.535000             🧑  作者: Mango

代码示例1
if (isset($_GET['del'])) {
    $id = $_GET['del'];
    mysqli_query($db, "DELETE FROM info WHERE id=$id");
    $_SESSION['message'] = "Address deleted!"; 
    header('location: index.php');
}