may try using this for the $updateSQL:
$updateSQL = "UPDATE teacher SET booklist = 1 WHERE teacherID = ".GetSQLValueString($_SESSION['id'], "text")."");
Okay -- fixed one problem, created another.
The following code updates the teacher table:
However the [Insert_ID] used for the redirect reports a zero ('0"), and the redirect to the Details page reports that the record has been deleted.
Mike