' . $sent . '
ORDER BY SeID
LIMIT 1'
);
$sql =
'SELECT
CASE WHEN Ti2WordCount>0 THEN Ti2WordCount ELSE 1 END as Code,
CASE WHEN CHAR_LENGTH(Ti2Text)>0 THEN Ti2Text ELSE WoText END AS TiText,
Ti2Order,
CASE WHEN Ti2WordCount > 0 THEN 0 ELSE 1 END AS TiIsNotWord,
WoID, WoTranslation, WoRomanization, WoStatus
FROM (' .
$tbpref . 'textitems2
LEFT JOIN ' . $tbpref . 'words
ON (Ti2WoID = WoID) AND (Ti2LgID = WoLgID)
)
WHERE Ti2SeID = ' . $sent . '
ORDER BY Ti2Order asc, Ti2WordCount desc';
$res = do_mysqli_query($sql);
if ($action == 4) {
?>
This is "Learning With Texts" (LWT) for Mobile Devices Version
"Learning with Texts" (LWT) is released into the Public Domain. This applies worldwide. In case this is not legally possible, any entity is granted the right to use this work for any purpose, without any conditions, unless such conditions are required by law.