有谁知道吗  作不了 回不去拉 谢谢 高手

解决方案 »

  1.   

    有人知道吗 要哭了 谢谢各位大大
      

  2.   

    $grid->db->where('date >= ',$newdate1);
    $grid->db->where('date <=',$newdate2); 
    protected function _where($key, $value = NULL, $type = 'AND ')
    {
    if ( ! is_array($key))
    {
    $key = array($key => $value);
    } foreach ($key as $k => $v)
    {
    $prefix = (count($this->ar_where) == 0) ? '' : $type; if ( ! is_null($v))
    {
    if ( ! $this->_has_operator($k))
    {
    $k .= ' =';
    } $v = ' '.$this->escape($v);
    } $this->ar_where[] = $prefix.$k.$v;
    }
    return $this;
    }
    protected function _has_operator($str)
    {
    $str = trim($str);
    if ( ! preg_match("/(\s|<|>|!|=|is null|is not null)/i", $str))
    {
    return FALSE;
    }
    return TRUE;
    }