Hi everyone,
This may be a simple soluton to you guys but I’m having trouble trying to pull data from two tables that I have. One being a parent and the other a child… Parent has more than one child…
I can get the data from the parent table with a do while loop but when I try and run a loop to display the children with that, it only shows the first child from that result… Eventually I want to use it to send out an email to a parent and how much they owe for a membership. Look at the example below:
From: MyWebsite ([email protected])
To: Parents Name ([email protected])
Subject: Invoice
Dear Parents Name
Your music centre fees for this term are below for each child.
Childs Name - £18
Childs Name - £12
Kind Regards,
Me
[hr]
The child table has a “parent_id” so I can use this to link the records but its driving me mad. Hope you can help.
Dan