I changed the form and field code from UTF8_GENERAL_CI to Utf8_unicode_ci, and I got an error.
Warning:mysql_num_rows (): supplied argument is not a valid MySQL result resource In/var/www/html/amazonnew/function/sale _import.class.php on line 29
Another question, what coding is better for saving national languages??
Reply to discussion (solution)
Why did you change it?
Utf8_general_ci is enough.
Utf8_general_ci has been adapted to the language of all countries! At least Japanese, English, Simplified Chinese, traditional Chinese are applicable
If you want to save the content that MySQL does not support, can do JSON encode to store, get time decode.
The error may not be due to a coding problem. You output the content returned by the Mysql_error () function. See what the specific error is?
Warning:mysql_num_rows (): supplied argument is not a valid MySQL result resource In/var/www/html/amazonnew/function/sale _import.class.php on line 29
This error message is due to query SQL execution failure.
Post your 29 lines of code
Now no error, thank you!
There's one more question, the second one.
Does UTF8_GENERAL_CI encoding support the world's major languages?
I want to save Japanese, French, English, German, simplified, traditional, Hindi, and some European languages!
Now accustomed to use UTF8_GENERAL_CI, generally create a database is generally chosen this, but for you to ask for the German and so the support is weaker than utf8_unicode_ci
With UTF8_GENERAL_CI, generally create a database to choose this