I can't find where I made a mistake, for years...
$row = "INSERT INTO Student (Name, Surename, StudentID, Generation) VALUES ('$_POST[$student_data]', '$_POST[$student_data]', '$_POST[$student_data]', '$_POST[$student_data]')";
This is report: Parse error: syntax error, unexpected '[', expecting ']' in
Thanks in advance...
First how are you defining $student_data?
Second, put var_dump($_POST); in your code and see what PHP is receiving from your form.
Hmm... Maybe you should to replace $POST[$studentdata[N]] with $POST[$studentdata][N] ?
This topic is now closed. New replies are no longer allowed.