这是我用dzsoft php editor时的出错提示:PHP Notice: Undefined variable: id in C:\Documents and Settings\jswb\桌面\dele.php on line 18 PHP Notice: Undefined variable: name in C:\Documents and Settings\jswb\桌面\dele.php on line 18
$query="delete from stu1 where id=$id and name='$name'";------------------------------- Where do you get the $id and $name here ??? If they are posted or got, use $_GET['id'] or $_POST['id'] to get the value.
thanks a lot i will try again.
是这样吗: $id=$_GET['id'] ; $name=$_GET['name'] ; $query="delete from stu1 where id='$id' and name='$name'";还是不行. 学生愚钝,大侠明示.
当然如果不赋初值的话,也会有楼主的提示,估计楼主是没取到值,如果不影响楼主的程序功能,可以把这些信息关闭,比如:error_reporting(0);
Where do you get the $id and $name here ???
If they are posted or got, use $_GET['id'] or $_POST['id'] to get the value.
$id=$_GET['id'] ;
$name=$_GET['name'] ;
$query="delete from stu1 where id='$id' and name='$name'";还是不行.
学生愚钝,大侠明示.