That's my full code: <?php $test = search_by_id('tests',$_GET['test_id']); $students = select_all('students'); $questions = search_questions($_GET['test_id']);?> <h2>Test Attempt <?php echo $test['name']?></h2><select> <input value="students">Students/> <input value="questions">Questions/> <input name='answers[]'></select> <?php //code to register attemptif (count($_POST) > 0){ $data = array( 'test_id' => $_POST['test_id'], 'student_id' => $_POST['student_id'], 'answers' => implode("###", $_POST['answers']), ); insert($data, 'attempts'); ?> and I get this error: Parse error: syntax error, unexpected $end in C:\xampp\htdocs\exercise_01\templates\attempts\register.php on line 23 I tried to do it in other ways,but I still get different errors.