草庐IT

empresas

全部标签

php - 警告:PDOStatement::execute(): SQLSTATE[HY093]: 参数编号无效:绑定(bind)变量的数量与中的标记数量不匹配

我正在使用PHPPDO,但遇到以下问题:Warning:PDOStatement::execute():SQLSTATE[HY093]:Invalidparameternumber:numberofboundvariablesdoesnotmatchnumberoftokensin/var/www/site/classes/enterprise.phponline63这是我的代码:publicfunctiongetCompaniesByCity(City$city,$options=null){$database=Connection::getConnection();if(empty