diff --git a/src/admin/templets/sys_info.htm b/src/admin/templets/sys_info.htm index ac78f5be..4bff0253 100644 --- a/src/admin/templets/sys_info.htm +++ b/src/admin/templets/sys_info.htm @@ -109,7 +109,7 @@ <td width="260">变量名称</td> </tr> <?php - $dsql->SetQuery("SELECT * FROM `#@__sysconfig` where groupid='{$dls[0]}' order by aid asc"); + $dsql->SetQuery("SELECT * FROM `#@__sysconfig` WHERE groupid='{$dls[0]}' ORDER BY aid ASC"); $dsql->Execute(); $i = 1; while($row = $dsql->GetArray()) { diff --git a/src/system/taglib/arclist.lib.php b/src/system/taglib/arclist.lib.php index b737aa14..e70936e5 100755 --- a/src/system/taglib/arclist.lib.php +++ b/src/system/taglib/arclist.lib.php @@ -239,8 +239,8 @@ function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlele else if ($orderby == 'lastpost') $ordersql = " ORDER BY arc.lastpost $orderWay"; else if ($orderby == 'scores') $ordersql = " ORDER BY arc.scores $orderWay"; //添加按好评数和差评数调用 - else if ($orderby == 'goodpost') $ordersql = " order by arc.goodpost $orderWay"; - else if ($orderby == 'badpost') $ordersql = " order by arc.badpost $orderWay"; + else if ($orderby == 'goodpost') $ordersql = " ORDER BY arc.goodpost $orderWay"; + else if ($orderby == 'badpost') $ordersql = " ORDER BY arc.badpost $orderWay"; else if ($orderby == 'rand') $ordersql = " ORDER BY rand()"; else $ordersql = " ORDER BY arc.sortrank $orderWay"; //limit条件 diff --git a/src/system/taglib/likearticle.lib.php b/src/system/taglib/likearticle.lib.php index ad7291c1..d1385528 100755 --- a/src/system/taglib/likearticle.lib.php +++ b/src/system/taglib/likearticle.lib.php @@ -58,7 +58,7 @@ function lib_likearticle(&$ctag, &$refObj) } $arcid = (!empty($refObj->Fields['id']) ? $refObj->Fields['aid'] : 0); if (empty($arcid) || $byabs == 0) { - $orderquery = " ORDER BY arc.id desc "; + $orderquery = " ORDER BY arc.id DESC "; } else { $orderquery = " ORDER BY ABS(arc.id - ".$arcid.") "; } diff --git a/src/user/mypay.php b/src/user/mypay.php index 600fd841..685dd09f 100755 --- a/src/user/mypay.php +++ b/src/user/mypay.php @@ -16,7 +16,7 @@ require_once(DEDEINC.'/datalistcp.class.php'); setcookie('ENV_GOBACK_URL', GetCurUrl(), time() + 3600, '/'); if (!isset($dopost)) $dopost = ''; if ($dopost == '') { - $query = "SELECT * FROM `#@__member_operation` WHERE mid='".$cfg_ml->M_ID."' And product='archive' order by aid desc"; + $query = "SELECT * FROM `#@__member_operation` WHERE mid='".$cfg_ml->M_ID."' And product='archive' ORDER BY aid DESC"; $dlist = new DataListCP(); $dlist->pagesize = 10; $dlist->SetTemplate(DEDEMEMBER.'/templets/mypay.htm');