php删除

<?php
$id = $_GET['id'];
$db= new Mysqli("localhost","root","root","db_0808");
$sql = "delete * from cargo WHERE id = {$id}";
$sql2 = "update cargo set is_delete ='1' WHERE id ={$id}";
//var_dump($id);
if ($db->query($sql2)){
header("location:chuhuo.php");
}
上一篇:spring-mvc注解配置小记


下一篇:maven学习3,如何创建一个web项目