我有以下声明:
$search = "SELECT Scene, Divinite, Attestation
FROM SceneDivList
WHERE BINARY Divinite = $target
ORDER BY FIELD( Scene);
$result = mysql_query($search, $con);
In this case the result will be alphabetically order based on the field scene .
有可能根据以下字母顺序而不是按字母顺序排列结果:
$alphabet = array( 1 => - , 2 => , , 3 => . , 4 => "A",
5 => "j", 6 => "a", 7 => "w", 8 => "b",
9 => "p", 10 => "f", 11 => "m", 12 => "n",
13 => "r", 14 => "h", 15 => "H", 16 => "x",
17 => "X", 18 => "s", 19 => "S", 20 => "q",
21 => "k", 22 => "g", 23 => "t", 24 => "T",
25 => "d", 26 => "D");
结果是:
SCENE ATTESTATION
jnD-Hr-m-nms,t DI.80,11
jrp DI.26,12
jrT,t DI.116,17
aAb,t DI.138,8
anx DI.12,5
antjw DI.148,10
wADw-msdm,t DI.144,11
bHsw DI.115,9
pr-n-nb=f DI.17,7