https://antibiotiqueaugmentin.com/surdosage-augmentin-bebe/
× This is the optional Forum header for the Suggestion Box.

Search condition language problem!

  • sospixs
  • sospixs's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 8 months ago #749

I have to show data for website member who's loging in.
And the data in THAI Language that can show,
But when i press search button with THAI charactors condition , It's doesn't work , How do I fix this problem ?

Last edit: 13 years 8 months ago by sospixs. Reason: Add image

Please Log in or Create an account to join the conversation.

  • sospixs
  • sospixs's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 7 months ago #754

No answer :S

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #755

Hi,

SELECT column 
FROM table 
WHERE UPPER(column) LIKE ('%search%') OR UPPER(column) LIKE ('%search%') 
ORDER BY id ASC LIMIT 0, 20

Can you run above sql in your mysql db?
You have to change first:

column = the name of your column in your table
table = your table name
search = your search string

What is your result?

Best regards,
Viljem

Please Log in or Create an account to join the conversation.

  • sospixs
  • sospixs's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 7 months ago #778

I have resolve this problem!!!
It's error because php function "strtoupper"

when php convert characters to UPPER , The characters
has convert to binary or something that made query not found.

Please see attach picture.

I change a little bit search condition to use MYSQL Upper function instead strtoupper in PHP . It's work fine.

Last edit: 13 years 7 months ago by sospixs.

Please Log in or Create an account to join the conversation.

  • lin
  • lin's Avatar
  • Visitor
  • Visitor
13 years 3 months ago #941

I just installed Table JX, and have the same problem in search fuction.

The search fuction works for finding numbers and alphabet. But it doesn't work in finding Japanese characters.

Could you please advise me how to fix it? I don't know which php file and syntax need to modify.

Thank in advance.
Lin

Please Log in or Create an account to join the conversation.

Moderators: tomaz
Time to create page: 0.173 seconds

Contact Us

Contact us on Discord

Contact us on Facebook