Jump to content

Is a JOIN Required for the Simple Query I am Writing?


OldWest

Recommended Posts

I am trying to get a query working:

 

SELECT * FROM city, postings WHERE id='$_GET[id]'

 

As you can see, I am trying to get the record results from both tables WHERE there is an id field match in both tables.

 

My PHP code is working fine otherwise.. I just can't seem to pull the right data with my query - throwing errors.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.