运用INSERTINTO语句向数据库中插入数据失败。
时间:2021-07-01 10:21:17
帮助过:34人阅读
include(conn/conn.php);
if($_POST[submit]){
$code = $_POST['code'];
$note = $_POST['note'];
$routeway = $_POST['routeway'];
$operator = $_POST['operator'];
if($code!= "" || $note != "" || $routeway != "" || $operator !=""){
$sql ="INSERT INTO code_group (groupNumber,groupCode,groupNote,groupRouteway,groupOperator) VALUES('','$code','$note','$routeway','$operator')";
if(mysql_query($sql)){
echo"";
}else{
echo"";
}
}else{
echo"";
}
}
?>