Jump to content

how to search only letters and numbers in tables


Realistic Hostings
 Share

Recommended Posts

I wish to know how google does their search, say there is a road called St. John's Road in my database and I type in my ajax-auto-sugestion field...

St John

How can I get the auto-selection to show the road that is LIKE the content but do not use the . or the ' in the database

If I was to start to type...

St. John

then it would of course show the suggestion as I used the .

Can this be done ?

My fields have the proper names of the roads and I use utf8_general_ci for the road name field and the LIKE method to get the results.

Link to comment
Share on other sites

This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.