时间:2021-07-01 10:21:17 帮助过:32人阅读
添加考试
if($_GET['do']=='add'){
include DedeInclude('templets/student/student_voice_add.htm');
$id = $_POST['username'];
$email = $_POST['email'];
$content = $_POST['content'];
$time = date('Y-m-d H:i:s');
$category = $_POST['category'];
$flag = $_POST['flags'];
$flags=implode(",",$flag);
$checked = $_POST['checked'];
//echo $id."
".$email."
".$content."
".$time."
".$category."
".$flags."
".$checked;
$sql = "INSERT INTO djs_skstudent_voice (username ,content ,time ,category ,checked ,email ,flag)VALUES ('$id','$content', '$time' , '$category', '$checked','$email','$flags')";
$dsql->ExecuteNoneQuery($sql);