【发布时间】:2014-05-03 21:00:14
【问题描述】:
$q = 'INSERT INTO MyTable(proddesc, qnty, PriceH, PriceA, PriceL) VALUES(?,?,?,?,?)';
$sth = odbc_prepare($dbConn, $q);
$success = odbc_execute($sth, array(my 5 variables that are not null));
它给了我上述错误 - [ODBC Microsoft Access Driver] COUNT field incorrect。我知道查询是正确的,因为我在 Access 中运行它并且很好。我想我可能错误地使用了准备/执行语句。
【问题讨论】:
-
并非如此。语法对我来说是正确的。