Querying ODBC datasource

From: Date: Mon, 27 Nov 2000 18:52:07 +0000
Subject: Querying ODBC datasource
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27424@lists.php.net to get a copy of this message
Hi All, Let me start by letting you know I have all of two days experience so far with PHP. (Been working with ColdFusion for almost 5 though). Anyway, I'm trying to make a serialize the results of a database query into a WDDX packet but I get the following error: Warning: Array not passed by reference in call to odbc_fetch_into() in c:\inetpub\wwwroot\ewebeditpro\php\index.php on line 19 (which is actually the line that starts with odbc_fetch_into) What I am doing something wrong. Please help. Here is the code: <?php $strSQLString = "SELECT * FROM images"; $dboConnect = odbc_connect( $gstrDataSourceName, "", "" ); $qrySQLString = ""; odbc_fetch_into(odbc_exec( $dboConnect, $strSQLString ), $qrySQLString ); odbc_close( $dboConnect ); $WDDXSQLString = wddx_serialize_vars($qrySQLString); ?> TIA, Duane Boudreau Director of Web Technologies Ektron, Inc.

« previous php.general (#27424) next »