Bug #2704 Updated: ODBC insert error

From: Date: Sun, 16 Jun 2002 13:01:14 +0000
Subject: Bug #2704 Updated: ODBC insert error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10722@lists.php.net to get a copy of this message
ID: 2704 Updated by: sander@php.net Reported By: chus@cfnti.net -Status: Assigned +Status: Bogus Bug Type: ODBC related Operating System: NT 4 PHP Version: 3.0.12 Assigned To: kara New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [1999-11-28 12:19:21] kara@cvs.php.net Seems to be a problem with specific drivers ? ------------------------------------------------------------------------ [1999-11-12 03:20:00] chus@cfnti.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"; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=2704&edit=1

« previous php.bugs (#10722) next »