| | #1 |
| TNT Join Date: 2012 Location: florida
Posts: 65
Thanks: 19
Thanked 5 Times in 5 Posts
|
I have a search form that can search for exact terms and I am trying to make it so you can search a partial term. If I search for a city, Palm I want it to pull up palm beach, palm beach gardens, and west palm beach. I know that wildcard is % % but I cannot figure out how to add them here PHP Code: |
|
If everyone knew everything the world sure would be irritating
| |
| |
| | #2 |
| VIP Warrior War Room Member Join Date: 2006 Location: , , USA.
Posts: 1,795
Thanks: 70
Thanked 287 Times in 259 Posts
|
and city LIKE '%searchterm%'
|
| |
| | #3 |
| TNT Join Date: 2012 Location: florida
Posts: 65
Thanks: 19
Thanked 5 Times in 5 Posts
| |
|
If everyone knew everything the world sure would be irritating
| |
| |
| | #4 |
| TNT Join Date: 2012 Location: florida
Posts: 65
Thanks: 19
Thanked 5 Times in 5 Posts
|
I've cleaned up the sql calls a bit but am still not able to use the wildcard search PHP Code: |
|
If everyone knew everything the world sure would be irritating
| |
| |
| | #5 |
| TNT Join Date: 2012 Location: florida
Posts: 65
Thanks: 19
Thanked 5 Times in 5 Posts
|
I have tried PHP Code: PHP Code: PHP Code: PHP Code: |
|
If everyone knew everything the world sure would be irritating
| |
| |
| | #6 |
| TNT Join Date: 2012 Location: florida
Posts: 65
Thanks: 19
Thanked 5 Times in 5 Posts
|
I found it. PHP Code: PHP Code: |
|
If everyone knew everything the world sure would be irritating
| |
| |
|
| Bookmarks |
| Tags |
| function, php, search, wildcard |
| |