note 12001 added to function.odbc-prepare.php
| From: | thneeb at gmx dot de | Date: | Sat, 17 Mar 2001 08:48:08 +0000 |
| Subject: | note 12001 added to function.odbc-prepare.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12502@lists.php.net to get a copy of this message | ||
The following piece of code:
$con=odbc_connect("ml", "sa", "");
$res = odbc_prepare($con, "INSERT INTO ML_FAQ(FaqID, Frage, Sequence, Antwort) VALUES (?,
'Thomas', 100, 'Hallo')");
$a = array("FaqID" => 25);
odbc_execute($res, $a);
odbc_close($con);
results in the following warning:
Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver]COUNT-Feld ungültig. , SQL state 07001
in SQLExecute in c:\dat\cms\testdb.php on line 5 (the line with the odbc_execute)
http://www.php.net/manual/de/function.odbc-prepare.php