I am trying to sort Hebrew in sql and print it in php ..I have tried:
$query_skey002 = "SELECT * FROM `s_keywords` ORDER BY `name2` ASC";
Does not work.I tried to use php sort function, but I don't know how to sort sql array in this functionThanks for the helpers.
MySQL can sort hebrew text if you use the correct encoding / matching.
hebrew
http://dev.mysql.com/doc/refman/5.0/en/charset-mysql.html
If I'm not mistaken, and you mean how to sort in alphabetical order, then you need to use the proper COLLECTION for your table. perhaps utf8-general does the job
I solved it.I just changed the request to
$query_skey002 = "SELECT * FROM `s_keywords` ORDER BY BINARY `name2` ASC";
Thanks to everyone! ..
Oddly enough (or not so strange if you know that Zend is an IL company), simple
sort($query_skey002);
in PHP should do for HE ...
PHP
Source: https://habr.com/ru/post/1492479/More articles:Strong name needed for assemblies referencing an unsigned project? - c #Image display in Gui - pythonHow to sort an NSMutableArray object in ascending or descending order - iosCast exceptions using type parameters: the right way to do this? - javamail () on https - phpget resource from fragment - androidangularjs $ location.path only updates the second click URL - angularjsPHP and Java string length for Arabic text for iOS Push Notifications - javaIncrement / decrement of a vector iterator - c ++Manual MVC form validation using jQuery always returns True - jqueryAll Articles