Why can't I write code?
Add an exam
PHP Code:
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);
can be added. But he will add a blank for all values. Then it's what you want to add. Which means he's going to do it first. All SQL with null values. What is this?
Share to: more
------Solutions--------------------
Before executing, output SQL to see
$sql = "INSERT into Djs_skstudent_voice (username, content, time, category, checked, email, flag) VALUES (' $id ', ' $content ', ' $time ', ' $category ', ' $checked ', ' $email ', ' $flags ');
Die ($sql);
------Solutions--------------------
Click the link is get mode
$_post arrays cannot have values