Ok I have two tables, below are the field names for each:
PEOPLE table
id, name
PICTURES table
id, filename, location, type, peopleid, bin
Now, here is the data I currently have in these tables, IGNORE the brackets():
PEOPLE table data
1, Nigel
2, David
PICTURES table data
1 (id), nigel.jpg (filename), /final/images/nigel.jpg (location), newsitem (type), 1 (peopleid - relates to id in PEOPLE table), 0 (bin)
Now I only want to gather the records in the PICTURES table that have their "type", for example, as newsitem and I want to have the following data outputted:
Image (show the image by using the location field)
Picture Name (show the name of the picture)
Name (show the name the image is related to, i.e nigel)
And keep doing that for each result that has it's type as newsitem.
That make any more sense?
Cheers,
Chris