OldWest Posted November 2, 2010 Share Posted November 2, 2010 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. Link to comment https://forums.phpfreaks.com/topic/217524-is-a-join-required-for-the-simple-query-i-am-writing/ Share on other sites More sharing options...
Pikachu2000 Posted November 2, 2010 Share Posted November 2, 2010 What are the errors? Link to comment https://forums.phpfreaks.com/topic/217524-is-a-join-required-for-the-simple-query-i-am-writing/#findComment-1129290 Share on other sites More sharing options...
OldWest Posted November 2, 2010 Author Share Posted November 2, 2010 It was a php syntax issue when echoing the results.. I'll post this new problem in the PHP Help forum.. Link to comment https://forums.phpfreaks.com/topic/217524-is-a-join-required-for-the-simple-query-i-am-writing/#findComment-1129301 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.