Ignore:
Timestamp:
2007/10/24 14:01:35 (19 years ago)
Author:
nanasess
Message:

複数カテゴリ対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/SC_Query.php

    r16535 r16546  
    371371    } 
    372372 
     373    // 1列取得 
     374    function getCol($table, $col, $where = "", $arrval = array()) { 
     375        if (strlen($where) <= 0) { 
     376            $sqlse = "SELECT $col FROM $table"; 
     377        } else { 
     378            $sqlse = "SELECT $col FROM $table WHERE $where"; 
     379        } 
     380        // SQL文の実行 
     381        return $this->conn->getCol($sqlse, $col, $arrval); 
     382    } 
     383 
    373384    // レコードの削除 
    374385    function delete($table, $where = "", $arrval = array()) { 
Note: See TracChangeset for help on using the changeset viewer.