php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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 ( ?, ?)");
$rs=odbc_execute($stmt,$sqldata);
if (!$rs){
echo "upsss";
}
echo "si";

?>


Patches

Pull Requests

History

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] sander@php.net
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 http://www.php.net/downloads.php

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC