Jump to content

Select where letters are not the same


Tasos

Recommended Posts

Hello i need some help on how to select like this here below.

 

Do i need somthing like not equal or greater than ?

 

C.

------------------------------------

Ca

Car

Cars ..........................................<<< this is good

------------------------------------

H.

------------------------------------

Ho

Hom

Home........................................ <<< this is good

Home G

Home Ga

Home Garden............................<< < this is good

------------------------------------

 

And the result should be like that

 

C.

------------------------------------

Cars

------------------------------------

H.

------------------------------------

Home

Home Garden

------------------------------------

 

Thanks for any help !

Edited by Tasos
Link to comment
Share on other sites

Again, what makes "Cars", "Home" and "Home Garden" good and the others not good? If you are saying they are good because they are "words" then you would have to have a dictionary to compare the results against. (besides why isn't "car" on your list of 'good' values? It's a normal word as well).

Link to comment
Share on other sites

Yes car(s) is a normal word but 'ca' ? what does Home G/ Home Ga mean ? or ca ? . i have like 1 million tags and if i echo all out i will be a mess.

 

So is that possible to complete what i ask ? can somebody help me with that ?

 

or is that impossible what is ask ?

Link to comment
Share on other sites

As has been said, you'd have to have a dictionary of valid words to compare against. There isn't any other way to check if a particular string of letter is a "real word". There are free dictionary lists on the internet, do a little google'ing and you can find them. Once you have one, import it into another table in your DB and then you can use an INNER JOIN against it to filter the invalid tags.

Link to comment
Share on other sites

Yes car(s) is a normal word but 'ca' ? what does Home G/ Home Ga mean ? or ca ? . i have like 1 million tags and if i echo all out i will be a mess.

 

CA is the abbreviation for California, and GA for Georgia. "Hom" is a recognized word too. So, is "Gard". So, even your examples are flawed. So you can't even determine what is and is not a word. There is no programming solution for what you ask. You can only compare the words against some other list of "approved" or "recognized" words.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.

×
×
  • 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.