Fixed undefined course information issue. I was just sending the wrong variable names in the SQL query.