|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2704 ODBC insert error
Submitted: 1999-11-12 03:20 UTC Modified: 2002-06-16 09:01 UTC
From: chus at cfnti dot net Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 3.0.12 OS: NT 4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
48 + 40 = ?
Subscribe to this entry?

 [1999-11-12 03:20 UTC] chus at cfnti dot net
Warning: SQL error: [Microsoft][ODBC Microsoft Access 97 Driver]Wrong number of parameters , SQL state 07001 in SQLExecute 

The code is simple:
$conn = odbc_connect("taw", "", ""); // Ms access data base

$sqldata = array('uno', 'dos');
$stmt = odbc_prepare($conn,"INSERT INTO lineas (id, data) VALUES ( ?, ?)");
if (!$rs){
echo "upsss";
echo "si";



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-28 12:19 UTC] kara at cvs dot php dot net
Seems to be a problem with specific drivers ?
 [2002-06-16 09:01 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Jan 29 03:03:35 2022 UTC