prepare('update data set Student_id=?, Name=?, Year=?, Class=?, Course=?, Filelink=?, Content=?, Edate=? where id=?');
if ($sql->execute([$_REQUEST['student_id'], $_REQUEST['name'], $_REQUEST['year'], $_REQUEST['class'], $_REQUEST['course'], $_REQUEST['myfile'], $_REQUEST['content'], $_REQUEST['edate'], $_REQUEST['id']])) {
echo '更新成功 ! ' . '
'; }
else {
echo '更新失敗 !' . '
';
}
?>