Database SQL: "INSERT INTO test_user (`username`) VALUES (:username)", ErrorInfo: Table 'sst.test_user' doesn't exist
- /www/wwwroot/genapi.renbenai.com/protected/lib/speed.php on line 352
347.
}
348.
}
349.
350.
if($sth->execute())return $readonly ? $sth->fetchAll(PDO::FETCH_ASSOC) : $sth->rowCount();
351.
$err = $sth->errorInfo();
352.
353.
err('Database SQL: "' . $sql. '", ErrorInfo: '. $err[2], 1);
}
354.
355.
public function dbInstance($db_config, $db_config_key, $force_replace = false){
356.
if($force_replace || empty($GLOBALS['mysql_instances'][$db_config_key])){
357.
try {
- /www/wwwroot/genapi.renbenai.com/protected/lib/speed.php on line 279
274.
public function create($row){
275.
$values = array();
276.
foreach($row as $k=>$v){
277.
$keys[] = "`{$k}`"; $values[":".$k] = $v; $marks[] = ":".$k;
278.
}
279.
280.
$this->execute("INSERT INTO ".$this->table_name." (".implode(', ', $keys).") VALUES (".implode(', ', $marks).")", $values);
return $this->dbInstance($GLOBALS['mysql'], 'master')->lastInsertId();
281.
}
282.
283.
public function findCount($conditions){
284.
$conditions = $this->_where( $conditions );
- /www/wwwroot/genapi.renbenai.com/protected/controller/DbController.php on line 13
8.
);
9.
10.
$user = new User();
11.
12.
// create返回的是最新插入的自增主键的值
13.
14.
$this->newid = $user->create($data);
15.
16.
$this->findall = $user->findAll();
17.
$this->display("db/create.html");
18.
}
- /www/wwwroot/genapi.renbenai.com/protected/lib/speed.php on line 101
96.
if(!is_available_classname($__controller))_err_router("Err: Controller '$controller_name' is not correct!");
97.
if(!class_exists($controller_name, true))_err_router("Err: Controller '$controller_name' is not exists!");
98.
if(!method_exists($controller_name, $action_name))_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
99.
100.
$controller_obj = new $controller_name();
101.
102.
$controller_obj->$action_name();
103.
if($controller_obj->_auto_display){
104.
$auto_tpl_name = (empty($__module) ? '' : $__module.DS).$__controller.'_'.$__action.'.html';
105.
if(file_exists(APP_DIR.DS.'protected'.DS.'view'.DS.$auto_tpl_name))$controller_obj->display($auto_tpl_name);
106.
}
- /www/wwwroot/genapi.renbenai.com/index.php on line 31
26.
header('Access-Control-Allow-Headers: *');
27.
header('Access-Control-Max-Age: 86400');
28.
29.
define('APP_DIR', realpath('./'));
30.
define("APP_PATH", dirname(__FILE__));
31.
require(APP_DIR.'/protected/lib/speed.php');