Hi All!
I am really struggling, wonder if someone could help.
I have 2 db tables. The first (birthdates) contains everything about a person from age to birth place, parents names, etc, all in a row. (I have 60 people...60 rows)
My second table (bd_images) contains images relating to a person in table one. This table has just 3 columns: 'id,' 'image' and 'ref'. The ref number is linked to table one's' id' column. So a person in T1 with an 'id' of 20 has images relating to them in T2 with the 'ref' number 20..
Hope that makes sense.........
I can't understand how to loop through both these tables in a single query. If I try UNION I get errors about using id problems, and if i try JOIN is says something about both tables need to have the same number of columns
Is there a way to simply have one SELECT and one WHILE LOOP?
Can I put a WHILE LOOP inside another?
Thx