//---------------------------------------------//unit: mysqli//author: 王王王//blog: http://www.cnblogs.com/wjh00a//2011-3-15//---------------------------------------------unitmysqli;interfaceusesSysUtils,mysql;type//---------------------------------------------//TMySqliConn//---------------------------------------------TMySqliConn=class(TObject)privatehandle: PMYSQL;publicconstructorCreate(host,user,passwd,db:string);destructorDestory;functionGetHandle():PMYSQL;end;//---------------------------------------------//TMysqliQueryResult//---------------------------------------------TMySqliQueryResult=class(TObject)privatehandle: PMYSQL_RES;
rowIndex: Integer;functionFieldIndex(fieldName:string): Integer;publicconstructorCreate(qryResult: PMYSQL_RES);destructorDestory();functionGetFieldNameByIndex(index: Integer):string;functionGetDataByFieldName(fieldName:string):string;functionNum_Rows(): Integer;functionNum_Fields(): Integer;functionBOF():