SELECT * FROM Grade_Theory WHERE *Question* = 'The funcdamental particle is called a quark, Bob!' # now out the answer in the var $answer if($user_answer =~ !$answer!) { # okay }