我正在使用将数据添加到数据库中。首先,我从帖子中获取值,然后将其插入表中。问题是总共有 7 个值,但只添加了 5 个值,其中 2 个没有插入到表中。这是我的代码
if( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] )) {
$degree_title = $_POST['degree_title'];
$degree_year = $_POST['degree_year'];
$uni_name = $_POST['uni_name'];
$degree_level = $_POST['degree_level'];
$major_sub = $_POST['major_sub'];
$run = mysql_query("INSERT INTO `career_fourudb`.`tffeck_employee_edu` (`id`, `employee_id`, `degree`, `year`, `degree_level`, `major_degree`, `uni`)
VALUES (NULL, $eme_uid, $degree_title, $degree_year, $degree_level, $major_sub, $uni_name)");
}
我呼应所有的值,所有的值都来了,所以为什么它们都没有插入到表中。感谢