This is going to be ugly, this is a table dump of a table called jobs
Field Type Attributes Null Default Extra Action
jobNum tinyint(11) No auto_increment Change Drop Primary Index Unique
jobCode mediumtext Yes Change Drop Primary Index Unique
jobCat tinytext Yes Change Drop Primary Index Unique
jobNam text Yes Change Drop Primary Index Unique
datePost int(11) Yes Change Drop Primary Index Unique
dateClos tinytext Yes Change Drop Primary Index Unique
prop tinytext Yes Change Drop Primary Index Unique
hours tinytext Yes Change Drop Primary Index Unique
yearRnd tinytext Yes Change Drop Primary Index Unique
wint tinytext Yes Change Drop Primary Index Unique
sum tinytext Yes Change Drop Primary Index Unique
jobReq text Yes Change Drop Primary Index Unique
jobDesc text Yes Change Drop Primary Index Unique
wage mediumtext Yes Change Drop Primary Index Unique
hourSal tinytext Yes Change Drop Primary Index Unique
contNam text Yes Change Drop Primary Index Unique
contPhon tinytext Yes Change Drop Primary Index Unique
inqEmail text Yes Change Drop Primary Index Unique
live tinyint(4) No 0 Change Drop Primary Index Unique
addInfo longtext Yes Change Drop Primary Index Unique
########################
Now here is a dump of the table called property
########################
Field Type Attributes Null Default Extra Action
id tinyint(4) No auto_increment Change Drop Primary Index Unique
propMain mediumtext No Change Drop Primary Index Unique
state tinytext No Change Drop Primary Index Unique
########################
The relation the two have is jobs.prop = property.propMain
The reason for the seperat tables is the property table populates a dropdown in the tool they use to create the job listings so that it is easy to add or remove properties via another tool.
I have been able to get returned results for the listings for two properties but it creates a listing for every record in the property.state row. For example say the result I want returned looks like this;
Golf Caddie - Premier Resorts, UT
Server- Deer Valley Lodging, UT
Those are fictional but in essence that is the result I want. Well the closest I have been able to get is either a SQL error or this;
Golf Caddie - Premier Resorts, UT
Server- Deer Valley Lodging, UT
Golf Caddie - Premier Resorts, CA
Server- Deer Valley Lodging, CA
Golf Caddie - Premier Resorts, ID
Server- Deer Valley Lodging, ID
Golf Caddie - Premier Resorts, HI
Server- Deer Valley Lodging, HI
Golf Caddie - Premier Resorts, CO
Server- Deer Valley Lodging, CO
Make sense?