Originally posted by rachel2004
I'm not sure what you mean by "cell"... however, it's possible to match records in one table to records in another table if that's what you mean.[/i]
Yes, I meant records. Sorry for the poor choice of words. Was thinking in terms of a spreadsheet, not database.
This depends on how you've designed your tables and what you want to receive in your result set.
The tables are designed to have the following fields:
Customer:
Name, Address, Phone, Email, Area of need (in zip code form)
Provider:
Name, Address, Phone, Email, Areas served (in zip code form)
What I am trying to do is set something up that would return the list of providers when a customer fills out a form.
For now, if you're just starting, think about your tables and work on just matching one customer with one zip code.
I've got that part down.
select * from xxx where 'zip' = $zip
Again, depending on how you're structured you tables and with the use of the WHERE claues, you can probably do what you're asking about.
Ok, I guess this gets to the heart of what I'm asking. How do you structure the table to include more than 1 zip code per record? Should they be seperated by commas? How does a form add them if they are set up as checkboxes? (i.e. a form listing all zips in an area with a checkbox beside each 1. The Provider could then check all applicable zips.)
Maybe I'm biting off more than I can chew.
Ollie