To answer everyone's comments/questions, I found an error in how I had set up the actual database table(forgot to include the Question column). All of the questions in the file only have four choices(A,B,C,D), so I declared $AnswerE as NULL just after connecting to the database. The reason for putting an Answer_E column within the table was to allow for possible future expansion. However, the suggestions provided did work, so my thanks to all who answered.