Database SQL: "UPDATE test_user SET `username` = :M_UPDATE_username 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 260
255.
foreach ($row as $k=>$v){
256.
$values[":M_UPDATE_".$k] = $v;
257.
$setstr[] = "`{$k}` = ".":M_UPDATE_".$k;
258.
}
259.
$conditions = $this->_where( $conditions );
260.
261.
return $this->execute("UPDATE ".$this->table_name." SET ".implode(', ', $setstr).$conditions["_where"], $conditions["_bindParams"] + $values);
}
262.
263.
public function incr($conditions, $field, $optval = 1){
264.
$conditions = $this->_where( $conditions );
265.
return $this->execute("UPDATE ".$this->table_name." SET `{$field}` = `{$field}` + :M_INCR_VAL ".$conditions["_where"], $conditions["_bindParams"] + array(":M_INCR_VAL" => $optval));
- /www/wwwroot/genapi.renbenai.com/protected/controller/DbController.php on line 27
22.
$user = new User();
23.
// 修改uid=2的名字为whoami
24.
$this->result = $user->update(array(
25.
"uid" => "2" // 条件
26.
), array(
27.
28.
"username" => "whoami" // 修改的内容,键是字段名
));
29.
// update返回结果是影响行数,返回0证明查询不到对应条件的数据
30.
31.
$this->findall = $user->findAll();
32.
$this->display("db/update.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');