为什么在fetchAll里面写入$where就报Application error错误。是不是哪里少些了什么?

解决方案 »

  1.   

    给 $today 也加上单引号
      

  2.   

    /**
         * Returns an array containing all of the result set rows.
         *
         * @param int $style OPTIONAL Fetch mode.
         * @param int $col   OPTIONAL Column number, if fetch mode is by column.
         * @return array Collection of rows, each in a format by the fetch mode.
         * @throws Zend_Db_Statement_Exception
         */
        public function fetchAll($style = null, $col = null)
        {
            $rows = $this->_fetchStack;
            $this->_fetchStack = array();        return $rows;
        }没有的用法哦