示例#1
0
 static function select_q($table = null, $columns = null, $where = null, $order = null, $limit = null)
 {
     if (!isset($columns)) {
         $columns = "*";
     } elseif (is_array($columns)) {
         $columns = data_use::join($columns, ",");
     }
     if (isset($where)) {
         $where = " where " . $where;
     }
     if (isset($order)) {
         $order = " order by " . $order;
     }
     if (isset($limit)) {
         $limit = " limit " . $limit;
     }
     //		echo parent::select($table, $columns, $where, $order, $limit)."<br>";
     return parent::select($table, $columns, $where, $order, $limit);
 }