662 $startTime = microtime(true);663 664 // Always save the last query so we can use665 // the getLastQuery() method.666 $this->lastQuery = $query;667 668 // Run the query for real669 if (! $this->pretend && false === ($this->resultID = $this->simpleQuery($query->getQuery())))670 {671 $query->setDuration($startTime, $startTime);672 673 // This will trigger a rollback if transactions are being used674 if ($this->transDepth !== 0)675 {676 $this->transStatus = false;
371 * the application run, and does all of the dirty work to get372 * the pieces all working together.373 */374 375 376 $app = new \Phpcmf\Extend\CodeIgniter(config(\Config\App::class));377 $app->initialize();378 $app->run();
require /www/wwwroot//index.php — require()
require /www/wwwroot//admin.php — require()
Displayed at 11:19:17am — PHP: 7.3.5 — CodeIgniter: 4.0.4
mysqli_sql_exception #1054
Unknown column 'id' in 'order clause' 搜索问题 →
SELECT * FROM `mac_vod` ORDER BY `id` desc LIMIT 10SYSTEMPATH/Database/MySQLi/Connection.php at line 331
- SYSTEMPATH/Database/MySQLi/Connection.php : 331 — mysqli->query ( arguments )
- SYSTEMPATH/Database/BaseConnection.php : 741 — CodeIgniter\Database\MySQLi\Connection->execute ( arguments )
- SYSTEMPATH/Database/BaseConnection.php : 669 — CodeIgniter\Database\BaseConnection->simpleQuery ( arguments )
- SYSTEMPATH/Database/BaseBuilder.php : 1860 — CodeIgniter\Database\BaseConnection->query ( arguments )
- FCPATH/Fcms/Core/Model.php : 787 — CodeIgniter\Database\BaseBuilder->get ()
- APPPATH/Api/diy.php : 20 — Phpcmf\Model->limit_page ( arguments )
- require APPPATH/Models/Http.php — require()
- APPPATH/Controllers/Admin/Http.php : 93 — Phpcmf\Model\Httpapi\Http->get_api_data ( arguments )
- SYSTEMPATH/CodeIgniter.php : 918 — Phpcmf\Controllers\Admin\Http->test_index ()
- SYSTEMPATH/CodeIgniter.php : 404 — CodeIgniter\CodeIgniter->runController ( arguments )
- SYSTEMPATH/CodeIgniter.php : 312 — CodeIgniter\CodeIgniter->handleRequest ( arguments )
- FCPATH/Fcms/Init.php : 378 — CodeIgniter\CodeIgniter->run ()
- require /www/wwwroot//index.php — require()
- require /www/wwwroot//admin.php — require()
Displayed at 11:19:17am — PHP: 7.3.5 — CodeIgniter: 4.0.4/index.php?s=httpapi&id=2&appid=需要填写值&appsecret=需要填写值&page=[翻页数字]
这个代码复制给我呢,需要改写一下