Tag Archives: Adidas

How do I check a part of a record for a string?

One example is, if someone does research online for " abcde" and I’d prefer to find every record who has " abcde" any place in it, how to I realize record Searching what MySQL database family table, a text record, an array, some sort of string Now i am using php browsing a MySQL databases. WHERE industry LIKE ‘%whatever a person’s term is%’ Imagine if it’s 2 words as well as the 2 words aren’t together inside string For case, the search is definitely " nike shoe". In case your record has " nike shoes" or even " shoes just like Adidas and Nike". Notice top of the and lower conditions also. I don’t understand how to do a case-sensitive research in MySQL, or even if it’s possibly possible. But you can easily adequate modify that query to read: WHERE industry LIKE ‘%nike%’ and industry LIKE ‘%adidas%’ MySQL just isn’t case-sensitive. That will force it, you have to specify BIN (binary) for a byte-by-byte match. So you’re OK with all the cases. Consequently, if a customer searches " nike" it can find " Nike" Bear in mind it’s a Linux server. That is definitely correct. In case I’m wrong, please … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment