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! 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. 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... 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
Archived
This topic is now archived and is closed to further replies.