I have 2 tables:1. table books with fields: book_id(primary key, int, auto increment), book_title, questions (type: text), req_questions(type: text). 2. table questions with fields: question_id(primary key, int, auto increment), question_title, question_data and so on. The fields of questions and req_questions in the table books are string of questions_id, for example, question field has value 19, 20, 23, Here 19, 20 and 23 are question_ids. similarly, field req_question has value "23, 20", 23 and 20 are question_ids. I need to build an interface to be able to add, delete and edit questions, edit fields questions and req_question. When I delet a questionf from table question, it auto delete it from fields questions and req_questions from table book. How could I do these? I read hasMany relationship, it seems very difficult to put these two table together since they have this abnormal relationship. Thank you for your help. Best Regards Lynda
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
