Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8937481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:25:24+00:00 2026-06-15T10:25:24+00:00

I am trying to make it to where I can upload data into a

  • 0

I am trying to make it to where I can upload data into a MySQL DB when the user selects save. Everything works fine and uploads perfectly. The only time it doesn’t work is if I select one part of the application. At first I thought it was because there was so much information uploading at once that the DB couldn’t handle it. Then I realized after doing more research that this is not the case. After further investigating, I am able to NSLog the error and I get this error whenever I try to save:

Error Domain=NSURLErrorDomain Code=-1000 "bad URL" UserInfo=0x8191c20 {NSUnderlyingError=0x8490000 "bad URL", NSLocalizedDescription=bad URL}

If anyone could please help me and try to provide an explanation of what this error means, that would be so helpful. If the explanation alone does not help me I will then post the code but first I would like an explanation and see if I can figure out the problem on my own. Thanks!

EDIT

This is what I have in my URL for iOS side. Seems correct to me but I could be missing something:

    NSString *strURL = [NSString stringWithFormat:@"http://localhost:8888/signUp.php?prod=%@&comp=%@&phone=%@&cat=%@&autos=%@&notes=%@",prod.text,company.text,phone.text,cat.text,date.text,notes.text];
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:25:25+00:00Added an answer on June 15, 2026 at 10:25 am

    Try:

    NSString *strURL = [NSString stringWithFormat:@"http://localhost:8888/signUp.php?prod=%@&comp=%@&phone=%@&cat=%@&autos=%@&notes=%@",prod.text,company.text,phone.text,cat.text,date.text,notes.text];
    NSString *escapedURLStr = [strURL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *url = [NSURL URLWithString:escapedURLStr];
    

    Caveat – not tested.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make it so a user can upload an avatar to their
I'm trying to make a cgridview that can filter data from relations table. This
I'm trying to make a view where the user can edit DB records through
I am trying to make a filter for my data so other people can
I'm trying to make it so I can write a function which defines a
i`m trying to make an NSMutableArray From NSUserDefaults so i can add/delete and edit
I'm trying to make a program that can be hosted by many peoples, like
I am trying to make a program that can take an .mp3 file from
I'm trying to make an applet which I can simply drag an image. And
I am trying to make Custom RelativeLayout which can scale and scroll. Right now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.