|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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-2022 The PHP Group
All rights reserved.
Last updated: Fri Jan 28 01:03:42 2022 UTC