Just a disclaimer, I've read through alot of searched threads to find my answers but nothing I've tried has worked.
I'm just gonna start with the easy question and once that's answered (if it is 🙂 I'll move on from there.
Ok, I have a DB with about 1500 entries and I built a real basic search function for it...currently I just have a drop down box with 3 different DB columns listed like Last_Name, Title, Location...then a submit box.
Ok, the Title field is where my first problem is...the users have been entering things like DON/ADOS...or whatever...my search only finds the first letters or more that you enter....so if you enter DO you'd get that record, but if you entered ADOS you would not.
this is what the code is for that part...
$query_Recordset1 = sprintf("SELECT * FROM resumes WHERE JOB_TITLE LIKE '%s%%' ORDER BY LAST_NAME ASC", $colname_Recordset1);
now I've tried '%%s%%' and that just pulls up every record with even one of the submitted letters...I've also tried a ton of other things that usually just end in database errors.
basically I want to be able to search for partial matches anywhere in the field, not just starting at the beggining...also if you enter a % before you do the actual search it will actually work like I'd like it too...my end users don't want to do that though. Thanks for any help...I have more...haha