PHP SQL Syntax Error using Bind parameters
问题 First, I use a MySQL POO API, there is the important part : public function query($query,$params = null,$fetchmode = PDO::FETCH_ASSOC) { $query = trim($query); $this->Init($query,$params); if (stripos($query, 'select') === 0){ return $this->sQuery->fetchAll($fetchmode); } elseif (stripos($query, 'insert') === 0 || stripos($query, 'update') === 0 || stripos($query, 'delete') === 0) { return $this->sQuery->rowCount(); } else { return NULL; } } _ This API has a loging and showing Class to save