Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Fire","color":"eb4b4b"},{"type":"html","value":"or an Exceedingly Rare Special' at line
Pole do którego chcę wrzucić json ma typ text.
public function updateSteamInv($userId, $inv) { if ($inv && $userId) { if ($this->checkSteamInv($userId)) { $this->update = $this->pdo->exec("UPDATE `flip_steam_inventory` SET `inventory` = '{$inv}' WHERE `user_id` = '{$userId}'"); } else { $this->insert = $this->pdo->exec('INSERT INTO `flip_steam_inventory` ( `inventory`, `user_id`) VALUES( \'' . $inv . '\', \'' . $userId . '\')'); } return true; } return false; }
Ma ktoś pomysł o co może chodzić?
Dzięki z góry!