21.06.2016, 16:47
Quote:
LOL what?
I have mysql encoding settings(last): "mysql_tquery(mysqlConnection, "SET NAMES cp1251", "", "");" "mysql_tquery(mysqlConnection, "SET CHARACTER SET cp1251", "", "");" And now I have: " mysql_tquery(mysqlConnection, "SET NAMES cp1251", "", ""); mysql_tquery(mysqlConnection, "SET CHARACTER SET cp1251", "", ""); mysql_query(mysqlConnection, "SET NAMES cp1251"); mysql_query(mysqlConnection, "SET CHARACTER SET cp1251"); " And it works! It turns out, we specify the encoding for different queries, functions? For mysql_tquery and mysql_query separately! Problem was solved, thanks for a simplified version of my function! -----------------------------FIX------------- I've used for all requests this "mysql_tquery" function and so I have the encoding for the use of this function. "mysql_tquery" The script uses this function to query "mysql_query" means and coding should be for this function |
Put this after connect.