Database SQL: "DELETE FROM test_user WHERE `uid` = :uid", 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 271
266.
}
267.
public function decr($conditions, $field, $optval = 1){return $this->incr($conditions, $field, - $optval);}
268.
269.
public function delete($conditions){
270.
$conditions = $this->_where( $conditions );
271.
272.
return $this->execute("DELETE FROM ".$this->table_name.$conditions["_where"], $conditions["_bindParams"]);
}
273.
274.
public function create($row){
275.
$values = array();
276.
foreach($row as $k=>$v){
- /www/wwwroot/genapi.renbenai.com/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");
- /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');