|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: chus at cfnti dot net
New email:
PHP Version: OS:


 [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-2020 The PHP Group
All rights reserved.
Last updated: Tue Jan 28 19:01:26 2020 UTC