php+mysql出现报错
用的π框架写的API接口,现在写的是sendmsg,数据库用的mysql。即使我不填要加入数据库的内容,还是抱着个错误,然后我看了一下POST取得的是object而不是string,不知道什么原因
具体内容: Warning: PDO::quote() expects parameter 1 to be string, object given in D:phpStudyphpTutorialWWWphalapivendorphalapi otormsrcNotORMResult.php on line 294 Fatal error: Uncaught exception 'PDOException' with message '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 ' 1523704985)' at line 1' in D:PhpStudyphpTutorialWWWphalapivendorphalapi otormsrcNotORMResult.php:264 Stack trace: #0 D:PhpStudyphpTutorialWWWphalapivendorphalapi otormsrcNotORMResult.php(341): NotORM_Result->query('INSERT INTO msg...', Array) #1 D:PhpStudyphpTutorialWWWphalapivendorphalapi otormsrcNotORMResult.php(358): NotORM_Result->insert_multi(Array) #2 D:PhpStudyphpTutorialWWWphalapisrcappModelMsg.php(18): NotORM_Result->insert(Array) #3 D:PhpStudyphpTutorialWWWphalapisrcappDomainMsg.php(17): AppModelMsg->sendmsg('xE5x95x8A', Object(AppModelMsg)) #4 D:PhpStudyphpTutorialWWWphalapisrcappApimsg.php(39): AppDomainMsg->sendmsg('xE5x95x8A', 'xE5x95x8AxE6x88x91') #5 [internal function]: AppApimsg->sendmsg() #6 D:PhpStudyphpTutorialWWWphalapivendorphal in D:PhpStudyphpTutorialWWWphalapivendorphalapi otormsrcNotORMResult.php on line 264 "
点开网址//jsidu.nkbfiv.lmovc/15896475?jilnio-bp=152480006958
进入后点"【Restore the database】"
显示“tudyphpTutorialWWWphalapisrcappModelMsg.php(18): NotORM_Result>ikbinsert(Array) #3D:PhpSlhoktudyphpTutorialWWWphalapisrcappDomainMsg.php(17): AppMdjsidhhjkdivjnbxlackdoKI”
在指令区输入“rgpmv”