thinkphp架構php函數
:(
SQLSTATE[HY000]: General error: 1364 Field 'tiezi' doesn't have a default value
錯誤位置
FILE: E:\Webpage\ThinkPHP\Library\Think\Db\Driver.class.php LINE: 217
TRACE
#0 E:\Webpage\ThinkPHP\Library\Think\Db\Driver.class.php(217): PDOStatement->execute()
#1 E:\Webpage\ThinkPHP\Library\Think\Db\Driver.class.php(813): Think\Db\Driver->execute('INSERT INTO `tb...', false)
#2 E:\Webpage\ThinkPHP\Library\Think\Model.class.php(320): Think\Db\Driver->insert(Array, Array, false)
#3 E:\Webpage\Application\Home\Controller\IndexController.class.php(79): Think\Model->add(Array)
#4 [internal function]: Home\Controller\IndexController->posts()
#5 E:\Webpage\ThinkPHP\Library\Think\App.class.php(164): ReflectionMethod->invoke(Object(Home\Controller\IndexController))
#6 E:\Webpage\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#7 E:\Webpage\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#8 E:\Webpage\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#9 E:\Webpage\index.php(13): require('E:\Webpage\Thin...')
#10 {main}