the table structures are parent
parent-id,residence number,mobile number,class id
message-id,class id,Phone number,message
i want to select more than one class from check box list i.e. first ,second............tenth .
Now i want to save class id,phone number and message in message table for the classes selected for "n" number of records in the selected classes
i.e. if there are 10 students in first class and 10 records in second class .20 records should be inserted in the message table.how to loop for records.Explain me with an attachment.Its very urgent.How to use 2 loops
in fetching multiple ids and separting them and inserting records for each id