Database SQL: "DELETE FROM test_user WHERE `uid` = :uid", ErrorInfo: Table 'sst.test_user' doesn't exist
- D:\workplace\aiPicCreate\protected\lib\speed.php on line 335
330.
}
331.
}
332.
333.
if($sth->execute())return $readonly ? $sth->fetchAll(PDO::FETCH_ASSOC) : $sth->rowCount();
334.
$err = $sth->errorInfo();
335.
336.
err('Database SQL: "' . $sql. '", ErrorInfo: '. $err[2], 1);
}
337.
338.
public function dbInstance($db_config, $db_config_key, $force_replace = false){
339.
if($force_replace || empty($GLOBALS['mysql_instances'][$db_config_key])){
340.
try {
- D:\workplace\aiPicCreate\protected\lib\speed.php on line 254
249.
}
250.
public function decr($conditions, $field, $optval = 1){return $this->incr($conditions, $field, - $optval);}
251.
252.
public function delete($conditions){
253.
$conditions = $this->_where( $conditions );
254.
255.
return $this->execute("DELETE FROM ".$this->table_name.$conditions["_where"], $conditions["_bindParams"]);
}
256.
257.
public function create($row){
258.
$values = array();
259.
foreach($row as $k=>$v){
- D:\workplace\aiPicCreate\protected\controller\DbController.php on line 42
37.
$user = new User();
38.
// 删除uid为3的行
39.
$uid = 3;
40.
// 与insert,update等类似,delete也是输入条件数组
41.
$this->result = $user->delete(array(
42.
43.
"uid" => $uid
));
44.
// delete也是返回影响行数,没有匹配的结果会返回0
45.
46.
$this->findall = $user->findAll();
47.
$this->display("db/delete.html");
- D:\workplace\aiPicCreate\protected\lib\speed.php on line 84
79.
if(!is_available_classname($__controller))_err_router("Err: Controller '$controller_name' is not correct!");
80.
if(!class_exists($controller_name, true))_err_router("Err: Controller '$controller_name' is not exists!");
81.
if(!method_exists($controller_name, $action_name))_err_router("Err: Method '$action_name' of '$controller_name' is not exists!");
82.
83.
$controller_obj = new $controller_name();
84.
85.
$controller_obj->$action_name();
86.
if($controller_obj->_auto_display){
87.
$auto_tpl_name = (empty($__module) ? '' : $__module.DS).$__controller.'_'.$__action.'.html';
88.
if(file_exists(APP_DIR.DS.'protected'.DS.'view'.DS.$auto_tpl_name))$controller_obj->display($auto_tpl_name);
89.
}
- D:\workplace\aiPicCreate\index.php on line 55
50.
header('Access-Control-Max-Age: 86400');
51.
}
52.
53.
define('APP_DIR', realpath('./'));
54.
define("APP_PATH",dirname(__FILE__));
55.
require(APP_DIR.'/protected/lib/speed.php');