php4.0.1pl2, unixODBC-1.8.10 and odbc_prepare, odbc_execute

From: Date: Wed, 16 Aug 2000 20:11:58 +0000
Subject: php4.0.1pl2, unixODBC-1.8.10 and odbc_prepare, odbc_execute
Groups: php.general 
Request: Send a blank email to php-general+get-12111@lists.php.net to get a copy of this message
Hello, When trying to use odbc_prepare/odbc_execute with parameters, I get the following error message coming from the unixODBC driver manager: Warning: SQL error: [unixODBC][Driver Manager]Driver does not support this function, SQL state IM001 in SQLExecute in /home/lbouchard/public_html/php4/test.php on line 14 Here is my code: <?PHP $hdbc = odbc_connect(CM_Luc,"sa",""); $query_string = "insert into users (name) values (?)"; $param = "testname"; $parameters = array($param); $hstmt = odbc_prepare($hdbc, $query_string); odbc_execute($hstmt,&$parameters); ?> Does anybody know what's wrong ? ________________________ Luc Bouchard, Ing. GameLoft.com mailto:lbouchard@gameloft.com http://www.gameloft.com

« previous php.general (#12111) next »