what about just getting the answer and then test with a regexp (or plain index) if the answer of the database is included in the answer of the user
SELECT * FROM Grade_Theory WHERE *Question* = 'The funcdamental partic
+le is called a quark, Bob!'
# now out the answer in the var $answer
if($user_answer =~ !$answer!)
{
# okay
}