Darkness,
Your first value "$year[$1]" that't a 1(one) in there it should be an i(EYE) PHP won't let use numbers to name variables $1 is not valid therefore you get a parse error.
Darkness wrote:
I'm getting a parse error on this line
$query = "INSERT INTO hwkset ( year, subject, Staff, date, hwkset ) values( HERE----->"$year[$1]"<-------should be $i not $1 , "$subject[$i]", "$staff[$i]", "$date[$i]", "$hwkset[$i]" )";
if i take the speak marks out i get an error saying
Parse error: parse error, expecting T_STRING' orT_VARIABLE' or `T_NUM_STRING' in /home/darkness/public_html/school/admin/login.php on line 19
what am i missing