Jump to content

Recommended Posts

hey people

 

could somebody tell me what is the best way to query multiple tables.

 

For example I am doing a website based on an estate agents for my course. A Property will have numerous features. I'll have a table in the following format

 

ID    -      feature_id    -    feature

1      -      f1                -    Double garage

2      -      f2                -    double glazing

3      -      f3                -    front garden

4      -      f4                -    back garden

 

 

something along those lines anyway! well basically what i want to do is add a property to a table then add features of that particular property. so maybe a link table between the 2, i.e: (property 1 has double glazing)

 

property    -    feature

p1            -    f2

 

I'll have a couple of different tables that are relevant to things that the property includes. what i want to know is the best way to query that database so that i can out from all tables anything that is relevant to property 1.

 

hope this makes sense cos ive actually confused myself tryin to explain this!!

 

Cheers

Link to comment
https://forums.phpfreaks.com/topic/174886-best-way-to-query-multiple-tables/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.