вот код, на эту строчку не смотрите($this->umysql->con))
$temp=$this->umysql->con->prepare("UPDATE `users` SET `:name` = ':value' WHERE id =$this->login['id'] Limit 1;");
echo $name.' ';
echo $value;
$temp->bindParam(':name', $name, PDO::PARAM_STR);
$temp->bindParam(':value', $value, PDO::PARAM_STR);
$temp->execute();
написал для теста echo, в ответ я получаю такое
last_IP
178.125.196.23
Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in /home/u307706826/public_html/command/account.php on line 296
Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number in /home/u307706826/public_html/command/account.php on line 296
init
QtClient_2.0
Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in /home/u307706826/public_html/command/account.php on line 296
Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number in /home/u307706826/public_html/command/account.php on line 296
lastonline
2015-07-29 14:46:59
Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in /home/u307706826/public_html/command/account.php on line 296
Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number in /home/u307706826/public_html/command/account.php on line 296
Где в моем запросе ошибка? Поля все присутствуют в бд