I am trying to connect to a remote mysql database from an iPhone. I have searched many web sites but I did not find any help. If anyone has worked with this please send a solution.
Specifically look for http://mysql-cocoa.sourceforge.net/
Epsilon Prime
2009-11-16 14:52:24
-1 Wouldn't it be clearer to have linked to mysql-cocoa.sourceforge.net and even state that it indeed does work on iphone.
bentford
2010-06-15 20:40:22
Not really. Some people need to learn to use Google before opening a StackOverflow thread. Click the link and you'll see how lazy this question is.
Oli
2010-06-15 20:43:08
A:
well i have the resource of wordpress for iphone i dont remember were i find this but here are a form to manage data via web and i have an example with an sqllite data base downloaded from developer.apple.com
+2
A:
Assuming you have some experience with server-side programming (ie PHP), you could just create a NSArray from the content of a URL where you establish a connection to the MySQL server and print the results you want in ASCII or XML format.
NSURL *myURL = [NSURL URLWithString:@"http://www.myserver.com/results.php"];
NSArray *sqlResults = [[NSArray alloc] initWithContentsOfURL:myURL];
Also useful to help you format the results printed by the server page: http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/PropertyLists/Introduction/Introduction.html
Sam V
2009-05-08 19:58:09