Jump to content

[SOLVED] help with query syntax


ccrevcypsys

Recommended Posts

well my website keeps pulling the right info for the search but this is what it does

stuff2.gif

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

stuff.gif

Link to comment
https://forums.phpfreaks.com/topic/74518-solved-help-with-query-syntax/
Share on other sites

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.