connecting registration to localhost?

can someone please help me, i am crating an app using xcode 7, i am trying to connect my registration page to localhost and it keep saying unsupported url.


let url:NSURL = NSURL(string: "Localhost/project/members")!


can someone please explain the best way to connect to a data base and what fields i am suppose to place in the string above that would connect to my localhost?


i have set up on localhost (phpmyadmin)

Are you just connecting to localhost for testing? You'll need to connect to a single url eventually. I trust this is a Mac app, not an iOS app. Read up on how to build a RESTful server.

ok thanks, can you recommend any good server sites as i am new to this.

Can you show exactly the message you get and where (line of code)?


I tried to insert this line in a code, no problem.


Maybe you should try to add http before localhost

connecting registration to localhost?
 
 
Q