zelig Posted February 24, 2012 Share Posted February 24, 2012 Okay, I'm wanting to do a search, but until return the info if it has a specific indicator in the chosen field. Let me show you: $query = doquery("SELECT * FROM `orgs` IF `type`='c' ORDER BY name", "orgs"); How do I do that "IF" bit? Obviously this doesn't work. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/257723-help-with-finding-results-from-a-search/ Share on other sites More sharing options...
batwimp Posted February 24, 2012 Share Posted February 24, 2012 Try using WHERE instead of IF. Quote Link to comment https://forums.phpfreaks.com/topic/257723-help-with-finding-results-from-a-search/#findComment-1320934 Share on other sites More sharing options...
zelig Posted February 24, 2012 Author Share Posted February 24, 2012 Fantastic! Thanks! I knew I was over thinking it... Quote Link to comment https://forums.phpfreaks.com/topic/257723-help-with-finding-results-from-a-search/#findComment-1320935 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.