Code: Select all
$sql = "e;Select Questioncode from tblQuestion where Questioncode ="e; ."e;$qcode"e;;I would prefer the first method because it would be easier to manage than making an unreasonably large case statment that makes an individual statement based of $qcode. Not to mention I don't know exactly how many questions are going to be put into the database for them to be quized on so it makes doing it by case even more of a bad idea.