hello… this is my first post.
help me please.
i have 2 tables "question" and "answer" in mysql database.
mysql> desc question;
+----------+---------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------+---------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| question | text | NO | | NULL | |
+----------+---------+------+-----+---------+----------------+
2 rows in set (0.01 sec)
mysql> desc answer;
+-------------+---------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+---------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| question_id | int(11) | NO | MUL | NULL | |
| answer | text | YES | | NULL | |
+-------------+---------+------+-----+---------+----------------+
3 rows in set (0.01 sec)
question_id on table answer referenced to id in table question.
i created the crud for model Answer i got this form create.
but with this form it is not looks good for exam page.
4554
how do i create form with questions on left column and answer column on right in 1 form input?
questions are auto filled and get from table question.
i have tried tutorial "How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)" but i just got error.
please help.
thanks a lot …