Parse error: syntax error, unexpected T_CLASS, expecting '(' in /home/www/vhosts/contractor-training-ca.org/httpdocs/form_processors/do_confirm.php on line 11
Code: Select all
IF class.s1i=$SID THEN $sql="update students, class SET students.currentStatus='confirmed',students.timeStamp='$dateLastUpdated', class.s1s='confirmed' where students.SID=$SID";
ELSEIF class.s2i=$SID THEN $sql="update students, class SET students.currentStatus='confirmed',students.timeStamp='$dateLastUpdated', class.s2s='confirmed' where students.SID=$SID";
ELSE echo "no match";
END IF;