澳门皇冠真人网站

    1. <form id='Wyiped'></form>
        <bdo id='Wyiped'><sup id='Wyiped'><div id='Wyiped'><bdo id='Wyiped'></bdo></div></sup></bdo>

          • CDbException

            CDbCommand 无法执行 SQL 语句: CDbCommand 无法准备 SQL 语句: SQLSTATE[HY000]: General error: 1 near "LIMIT": syntax error. The SQL statement executed was: SELECT * FROM 'mt_product' 't' WHERE id > LIMIT 1

            /www/users/HA12050/WEB/framework/db/CDbCommand.php(516)

            504             return $result;
            505         }
            506         catch(Exception $e)
            507         {
            508             if($this->_connection->enableProfiling)
            509                 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query');
            510             $errorInfo = $e instanceof PDOException ? $e->errorInfo : null;
            511             $message = $e->getMessage();
            512             Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.',
            513                 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
            514             if(YII_DEBUG)
            515                 $message .= '. The SQL statement executed was: '.$this->getText().$par;
            516             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
            517                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
            518         }
            519     }
            520 
            521     /**
            522      * Builds a SQL SELECT statement from the given query specification.
            523      * @param array $query the query specification in name-value pairs. The following
            524      * query options are supported: {@link select}, {@link distinct}, {@link from},
            525      * {@link where}, {@link join}, {@link group}, {@link having}, {@link order},
            526      * {@link limit}, {@link offset} and {@link union}.
            527      * @return string the SQL statement
            528      * @since 1.1.6
            

            Stack Trace

            #3
            +
             /www/users/HA12050/WEB/views/product/view.php(29): CActiveRecord->find("id > ")
            24 <div>
            25 
            26          
            27          
            28          <?php
            29          $snew=Product::model()->find("id > $prolist->id");
            30           $xnew=Product::model()->order('id desc')->find("id < $prolist->id");
            31           
            32          ?>
            33          <?php if(!empty($snew))
            34                    {                      
            
            #8
            +
             /www/users/HA12050/WEB/protected/controllers/ProductController.php(85): CController->render("view", array("prolist" => null))
            80      {
            81       $this->layout=false;
            82           $id=$_GET['id'];
            83         
            84           $prolist=Product::model()->find("id=$id");
            85           $this->render('view',array('prolist'=>$prolist));
            86 
            87      }
            88      public function actionSearch()
            89      {
            90            $title=$_GET['title'];
            
            #16
            +
             /www/users/HA12050/WEB/common.php(13): CApplication->run()
            08 // specify how many levels of call stack should be shown in each log message
            09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
            10 require_once($yii);
            11 $app=Yii::createWebApplication($config);
            12 require_once($globals);
            13 $app->run();
            2019-04-17 04:37:37 Apache /1.1.8