php突然无法删除表里的数据,求助!!


<html> 

<body> 

<?php 

require_once('connect.php');

$serial= $_POST['serial'];

$type=$_POST['type'];

$name=$_POST['name'];

$contact=$_POST['contact'];

$time=$_POST["time"];

echo $serial;

echo $type;

echo $name;

echo $contact;

echo $time;

$modifymysql="update work1 set job=$job where serial=$serial";

mysql_query($modifymysql);

?>

</body> 

</html> 

输出是正常的,但是当修改时就出现错误

Notice: Undefined variable: job in D:\wampserver\wamp\www\modify_check.php on line 15

邓大大
浏览 1568回答 2
2回答

独孤啸

你上面没有$job 啊

sqlercn

上面好像没有定义job这个变量吧
打开App,查看更多内容
随时随地看视频慕课网APP