HAVOCWIZARD Posted May 22, 2007 Share Posted May 22, 2007 still not getting my search right trying something else, i have explode on the input, setting them to diffrent values, no i do a normal query with the last value if not found loops and the adds the 3rd value with the 4th value " remeber space in between, then run the same query, is there any other easier way..havent ran it yet, just want to get the explode to add automaticly the amount of input words " hotels new york" so $words = addslashes(str_replace($removal_strings, "", $_POST["inputTxt"])); $find = explode(" ", $words); $find1 = $find[0]; // hotels $find2 = $find[1]; // new $find3 = $find[2]; // york then i run my query anything like the last word....get nothing, works on exact match, "like" no i wanne loop if nothing is found and then add $find2 and $find3 together and then do my query again, because if the input is only new york is should also work, then i can filter the records found in new york and look for the first input "hotels", then is should work perfectly, any ideas. i know exactly what i want to do but dont know how. i need help on the output of it, need Quote Link to comment https://forums.phpfreaks.com/topic/52493-explode-input-then-add-them-on-by-on-with-spaces/ Share on other sites More sharing options...
MadTechie Posted May 22, 2007 Share Posted May 22, 2007 whart are you trying to do.. ? your breaking into words then what! Quote Link to comment https://forums.phpfreaks.com/topic/52493-explode-input-then-add-them-on-by-on-with-spaces/#findComment-259034 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.