I want to make a poll for my website(flash) where I can change the question from time to time. When I put up a new question, question_id in table1 will change (auto increment)
I am trying to make an updatefunction in php to work with amfphp and flash.
I have two tables:
1: Question: question_id, question.
2: Answer: answer_id, answer, question_id
question_id is foreign key in table 2. Can I somehow update question_id in table 2 with the 'most recent or higest' value from question_id in table 1.
I hope you understand my question, I find it very difficult to explain what I am looking for.
Any help is much appreciated, Thank you.
Karla