Connect to MySQL server with xcode
Why Stack Overflow recommends it
Stack Overflow users link it as a worked example when asking how to send data from an iOS app to a MySQL server through PHP over HTTP.
Recommended by 2 people across 2 different months, 2011 to 2012.
What it is
A short 2011 screencast showing how to connect an Xcode (iOS) app to a remote MySQL database using PHP scripts as the go-between. It walks through an insert operation and displaying the server's response in the app, with downloadable sample code from the presenter.
What people said
Recommends Ali Alzahrani · 2012-07 · Stack Overflow · on “send device token over http request”
I am using GET and it is working when I test it from Safari , in other words I want to do like this tutorial [this video]
Recommends TMLim · 2012-08 · Stack Overflow · on “xcode updating mysql remote database using PhP”
I have been following this great tutorial [this video] and got my codes to working with most of the database transfers. Now I'd like to use the same method to update long text messages and images onto my server MySQL database, but it doesn't seem to work. NSString *strURL = [NSString stringWithFormat:@" [LINK] ",nameField.text, messageField.text, image]; and then NSData *dataURL = [NSData dataWithContentsOfURL:[NSURL URLWithString:strURL]]; NSString *strResult = [[[NSString alloc] initWithData:dataURL encoding:NSUTF8StringEncoding] autorelease]; NSLog(@"StrResult is... %@", strResult); Problem 1: When the messageField.text is a long text with blank spacing in between such as "This is a free text
Cites shasha · 2011-11 · Stack Overflow · on “How to store the values which are entered in different text fields to the Server in objective C”
Hi Abhi, i am trying to store the data to the local server like mamp through php,as looking to the video in the following link - [this video] but i am not getting how to add the php file to the project or where to write the php code in the project,i am new to the developing side,my question may look simple to you,please try to help me.