binarynpixel — 2013-05-15T13:20:44-04:00 — #1
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...
cpradio — 2013-05-15T13:27:56-04:00 — #2
First how are you defining $student_data?
Second, put var_dump($_POST); in your code and see what PHP is receiving from your form.
redoctober — 2013-05-20T15:14:59-04:00 — #3
Hmm... Maybe you should to replace $POST[$studentdata[N]] with $POST[$studentdata][N] ?