-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Mar 07, 2001 at 09:16:10PM -0600, Steve Howard wrote:
> My problem comes with finding a way to build reusable code for a subroutine
> to deal with tables that will not go straight across. The obstacle is in
> this statement:
>
> $row = $select->bind_columns(undef, \$column1, \$column2......
>
> Again, I can get the column names by querying the system catalogs. I don't
> necessarily have to bind them by anything resembling their column name, I
> only need a way to reference them. So once I get the number of columns into
> the script, how can I then assign variable, or hash key names so that I can
> build a bind_columns statement that can work?
You could eschew the bind_columns and column lookup chicanery and just retrieve
the records with fetchrow_hashref.
- --
Stephen Clouse <[EMAIL PROTECTED]>
Senior Programmer, IQ Coordinator Project Lead
The IQ Group, Inc. <http://www.theiqgroup.com/>
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
iQA/AwUBOqcckgOGqGs0PadnEQKCxwCg47E1GFK/UCG0ZW45DxVtxscQW4sAn3kX
rLuf+jtZ+klRbcpzeXpj5Lym
=12P8
-----END PGP SIGNATURE-----