List:MySQL on Win32« Previous MessageNext Message »
From:Michael Widenius Date:April 10 1999 10:26pm
Subject:Client question
View as plain text  
>>>>> "Dennis" == =?iso-8859-1?Q?Dennis Thrys=F8e?= <iso-8859-1>
> writes:

Dennis> Hi,
Dennis> Which would be the best way to determine the number of fields in a given
Dennis> MYSQL_RES? The mysql_num_fields (which returns MYSQL_RES.field_count) seems
Dennis> to always be zero. This is to determine how many char* to take from the
Dennis> MYSQL_ROW.

Dennis> TIA,

Dennis> -qabi

Hi!

mysql_num_fields should always work;  If not, you are doing something
wrong (like using include files from an older MySQL version)

Check the code in mysqladmin.c how to use this!

Regards,
Monty
Thread
Client questionDennis Thrys√łe9 Apr
  • Client questionMichael Widenius11 Apr
    • Win32 Access Control - functionsCalistra Research Labs11 Apr
      • Win32 Access Control - functionsMichael Widenius11 Apr