Question and answers Form

I have a database table worksheet(qID varchar(5), answer varchar(50), wsheetid varchar(5)) with qID as the primary key. One worksheet has many questions.

I want to fetch all the questions where wsheetid =1 and display them as a form so that user can enter the answers.

And i want to check the user entered ans with the answer column in the database.

How can i do that in Yii.

Tried google and the forum but couldnt find any sol and newbie to yii. Any suggestion would be helpful.

check first

If you;re not that familiar with Yii, take time to study the tutorial. This in particular helped me a lot. Also, you may try to download the blog demo of Yii to see it in action.