MySQL table changed the code, statement execution on the error
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??
Share to:
------Solution--------------------
Why did you change it?
------Solution--------------------
Utf8_general_ci is enough.
------Solution--------------------
Utf8_general_ci has been adapted to the language of all countries! At least Japanese, English, Simplified Chinese, traditional Chinese are applicable
------Solution--------------------
If you want to save the content that MySQL does not support, can do JSON encode to store, get time decode.
------Solution--------------------
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.
------Solution--------------------
Post your 29 lines of code
------Solution--------------------
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
------Solution--------------------
With UTF8_GENERAL_CI, generally create a database to choose this