- Timestamp:
- 2010/12/16 23:29:12 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/helper/SC_Helper_DB.php
r19731 r19732 1274 1274 $rank = $objQuery->get("rank", $table, $where, array($id)); 1275 1275 // ランクの最大値を取得 1276 $maxrank = $objQuery->max( $table, "rank", $andwhere);1276 $maxrank = $objQuery->max("rank", $table, $andwhere); 1277 1277 // ランクが最大値よりも小さい場合に実行する。 1278 1278 if($rank < $maxrank) { … … 1356 1356 $rank = $objQuery->get("rank", $tableName, $getWhere, array($keyId)); 1357 1357 1358 $max = $objQuery->max( $tableName, "rank", $where);1358 $max = $objQuery->max("rank", $tableName, $where); 1359 1359 1360 1360 // 値の調整(逆順) … … 1493 1493 // 新カテゴリでの登録処理 1494 1494 // 新カテゴリの最大ランクを取得する。 1495 $max_rank = $objQuery->max( $table, "rank", "$cat_name = ?", array($new_catid)) + 1;1495 $max_rank = $objQuery->max("rank", $table, "$cat_name = ?", array($new_catid)) + 1; 1496 1496 $where = "$id_name = ?"; 1497 1497 $sqlup = "UPDATE $table SET rank = ? WHERE $where";
Note: See TracChangeset
for help on using the changeset viewer.