Mailing List Archive



Back to the month index Back to the list index

Luca Fini (lfini@arcetri.astro.it)
Fri, 14 Nov 1997 17:22:56 +0100 (MET)


Date: Fri, 14 Nov 1997 17:22:56 +0100 (MET)
From: Luca Fini <lfini@arcetri.astro.it>
Subject: Re: Display all 4 fields in table row
Message-ID: <Pine.LNX.3.95.971114171958.6948Q-100000@lfini>

On Fri, 14 Nov 1997, Matt Heller wrote:

> Hi,
>
> My problem is that when I run the program it correctly returns the
> number of records in the given db, but when I try to show the actual data
> in the fields, I have no way of knowing (without hardcoding the number)
> how many fields there are in each row. Does Lite have a simple way of
> doing this that I can't find?
>
Yes.
Look at: msqlListField() (in lite)

or msqlNumFields() (in C API)

Cheers,
                l.f.
--------------------------------------------------------------------------
       -- ) Luca Fini Tel: +39 55 2752 307
 ___ |\ Osservatorio Astrofisico di Arcetri Fax: +39 55 2752 292
/ | | |\_ L.go E.Fermi, 5 o-----------------------------------------
(___|___//___) 50125 Firenze / WWW: http://www.arcetri.astro.it/~lfini
 (_) (_) Italia / e-mail: lfini@arcetri.astro.it
-----------------------------o--------------------------------------------