Thema: Delphi mysql_fetch_field

Einzelnen Beitrag anzeigen

Toby2k

Registriert seit: 25. Feb 2011
2 Beiträge
 
#2

AW: mysql_fetch_field

  Alt 26. Feb 2011, 14:25
Lösung gefunden:

Delphi-Quellcode:
if mysql_num_rows(rResult) >= 1 then begin

   rRow := mysql_fetch_row(rResult);

   for i := 0 to mysql_num_fields(rResult) - 1 do begin

      rFields := mysql_fetch_field(rResult);
      aData.Add(Format('%s=%s', [mysql_field_name(rFields), rRow[i]]));

   end;

end;
VG Toby
  Mit Zitat antworten Zitat