As suggested to me I have downloaded and included the SMySql framework in my
project, now I am trying to connect to the SMySql database.
For that I am writing the following piece of code but I am not able to
retrieve the data from the database.
MCPConnection *theConnec = [MCPConnection alloc];
MCPResult *theRes;
NSDictionary *theDict;
NSArray *theColNames;
theConnec = [theConnec initToHost:@"" withLogin:@"" password:@""
usingPort:0]; [theConnec selectDB:@"testdb"]; //Database
name I have created is Testdb NSLog(@"connection",theConnec);
theRes = [theConnec queryString:@"select * from login"]; //login is
the name of the table I have created
theColNames = [theRes fetchFiedlsName];
Can you help me in connecting to the Sqlite database.
Its quite urgent
Thanks,
Nam
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com