Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-06-2009, 09:47 AM   #1 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 3
Unhappy Remote Mysql database interaction problem

Hi All,

I am trying to interact with remote mysql database with using NSURL.

below is my code :

NSString *mutableUrlString = @"http://mysite.com/testSample.php?userName=";
mutableUrlString = [mutableUrlString stringByAppendingString: firstnameTextfield.text];
[NSURL URLWithString: mutableUrlString];

In php file added code to insert the username into the database.

If i run this code

In console i am getting the below error

2009-07-06 19:03:09.776 gdb-i386-apple-darwin[500:613] _CFGetHostUUIDString: unable to determine UUID for host. Error: 35

I am unable to interact and insert or retieve the values from the mysql database. PHP code is fine. But if i call that url in iphone the values are not inserting into the database. Iam running this code in IPhone simulator 3.0


Please help me. How i need to solve the problem.

Thanks
bhanupriya is offline   Reply With Quote
Old 07-07-2009, 01:00 AM   #2 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 3
Unhappy Remote Mysql database interaction problem

Please i need a solution for this problem. No body faced this problem.
bhanupriya is offline   Reply With Quote
Old 12-13-2010, 06:25 AM   #3 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 2
Default

Hi bhanupriya,

If you haven't yet managed to solve your problem, you might want to look at a solution that avoids this kind of development work altogether.

We are doing Beta testing on a new system called Kumulos, which allows you to create hosted databases easily and create API's and Objective-C bindings. It very easy to use and could cut your development time and hassle significantly.

Check out a tutorial at : Kumulos Tutorial With Sample Code | kumulos.com

Thanks

Kumulos
Kumulos is offline   Reply With Quote
Old 12-13-2010, 07:32 AM   #4 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 289
Send a message via Yahoo to iphonegamedeveloper
Default

Quote:
Originally Posted by bhanupriya View Post
Hi All,

I am trying to interact with remote mysql database with using NSURL.

below is my code :



In php file added code to insert the username into the database.

If i run this code

In console i am getting the below error

2009-07-06 19:03:09.776 gdb-i386-apple-darwin[500:613] _CFGetHostUUIDString: unable to determine UUID for host. Error: 35

I am unable to interact and insert or retieve the values from the mysql database. PHP code is fine. But if i call that url in iphone the values are not inserting into the database. Iam running this code in IPhone simulator 3.0


Please help me. How i need to solve the problem.

Thanks
Try this


mutableUrlString=[NSString stringWithFormat:@"http://mysite.com/testSample.php?userName=%@",firstnameTextfield.tex t];

[NSURL URLWithString: mutableUrlString];
iphonegamedeveloper is offline   Reply With Quote
Old 12-13-2010, 02:10 PM   #5 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 45
Default

You need to expose the exact URL that you are sending to the NSURL i.e. you need to see what the string is via NSLog and odds are that there are some spaces or other characters that need to be escaped in order for the URL to be valid.
SoftmasterG is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 158,475
Threads: 89,091
Posts: 380,123
Top Poster: BrianSlick (7,091)
Welcome to our newest member, drg4cen
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:06 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0