ccrevcypsys Posted October 23, 2007 Share Posted October 23, 2007 well my website keeps pulling the right info for the search but this is what it does as you can see it is posting that on the page but it is making copies and changing the type of event they are. It goes thru all of the events like that. ( this is suppost to be just 3 posts) (one for event (north america) one for event (latin america) and one for event (asia pacific)... whats going on here? here is my code: $result = mysql_query(" SELECT nd.*, dt.doc_name, r.region_name FROM newsdocs nd, doc_types dt, regions r WHERE dt.keyid = nd.doc_type && (r.keyid = nd.EMEA) || (r.keyid = nd.north_america) || (r.keyid = nd.latin_america) || (r.keyid = nd.asia_pacific) || (r.keyid = nd.greater_china) && $where_cond ORDER BY nd.date DESC, nd.title "); and my database table Quote Link to comment https://forums.phpfreaks.com/topic/74518-solved-help-with-query-syntax/ Share on other sites More sharing options...
ccrevcypsys Posted October 23, 2007 Author Share Posted October 23, 2007 nvm im a genius! Quote Link to comment https://forums.phpfreaks.com/topic/74518-solved-help-with-query-syntax/#findComment-376612 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.