Bug #2704: ODBC insert error

From: Date: Fri, 12 Nov 1999 08:20:00 +0000
Subject: Bug #2704: ODBC insert error
Groups: php.dev 
Request: Send a blank email to php-dev+get-12338@lists.php.net to get a copy of this message
From: chus@cfnti.net Operating system: NT 4 PHP version: 3.0.12 PHP Bug Type: ODBC related Bug description: ODBC insert error 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"; ?>

« previous php.dev (#12338) next »