Jump to content

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

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.