Mailing List Archive



Back to the month index Back to the list index

Matt Heller (matt@bah.com)
Thu, 13 Nov 1997 16:11:17 -0500 (EST)


Date: Thu, 13 Nov 1997 16:11:17 -0500 (EST)
From: Matt Heller <matt@bah.com>
Subject: msqlNumFields()
Message-ID: <Pine.SUN.3.95.971113155839.1667B-100000@mango.jmb.bah.com>

Hi,

        I just started playing around with mSQL today, and have figured
out that msqlNumRows() will give me the number of rows returned by the
select query.

        As I further understand things, if I want to get the actual
number of fields returned in each row, I need to use the
msqNumFields() command, right? I want to use this to loop through
each element in the table row and list it out.

        The problem is that when I try to get the number of fields using
msqlNumFields(), actually msqlNumFields($result);, I get the following:

        Runtime Error! - Call to unknown function msqlNumFields()

        Any ideas on why this inst wokring?

        I am running 2.0.3 on solaris.

        Matt

                            _____________________
                                 Matt Heller
                            Booz Allen & Hamilton
                              Internet Services
                                  Webmaster
                            _____________________