hi,
I want to connect MySQL database remotely using MCPKit framework:
http://mysql-cocoa.sourceforge.net/
I developed next:
I added framework to project. But when I compile source get errors. (XCode doesn't see MCPResult and MCPConnection).
Why? How to fix this problem?
I want to connect MySQL database remotely using MCPKit framework:
http://mysql-cocoa.sourceforge.net/
I developed next:
PHP:
MCPResult *resuilt;
NSString *campoX;
MCPConnection *theConnec = [[MCPConnection alloc] initToHost:@"localhost"
withLogin:@"root" password:@"xxxx" usingPort:3303];
if ([theConnec isConnected])
{
NSLog(@"Connected ");
}
else
{
NSLog(@"Not Connected ");
}
user = [[resuilt fetchRowAsArray] objectAtIndex:1];
NSLog(@"Valor: %@", campoX);
Why? How to fix this problem?