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 170861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:53:04+00:00 2026-05-11T12:53:04+00:00

Anyone have any suggestions on how to set up both the php and the

  • 0

Anyone have any suggestions on how to set up both the php and the cocoa side of calling php functions? As a quick idea of what I want to do, I want to be able to to populate two tables with data and add/remove data from the db. So I want to set up a few functions in php that I can call from my iPhone code that will return values from my queries. I should note that my db is MySQL.

Mostly I’m interested in the syntax so if you have any code examples that I can play around with that would be super helpful.

Thanks in advance!

  • 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. 2026-05-11T12:53:05+00:00Added an answer on May 11, 2026 at 12:53 pm

    Well, to get some data over HTTP protocol in iPhone, you could use:

    NSString *urlstr = [[NSString alloc] initWithFormat:@'http://www.yourserver.com/yourphp.php?param=%d', paramVal]; NSURL *url = [[NSURL alloc] initWithString:urlstr]; NSString *ans = [NSString stringWithContentsOfURL:url]; // here in ans you'll have what the PHP side returned. Do whatever you want [urlstr release]; [url release]; 

    Now, on the PHP, you can return the data the way you want. I.E., and XML which you will then parse on the iPhone side.

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

Sidebar

Related Questions

Anyone have any idea about CASlotProxy Class in Cocoa (iOS SDK)? I found it
Anyone have any suggestions on how to make randomized colors that are all greenish?
Does anyone have any suggestions on how to edit an <a href=''> link in
Does anyone have any suggestions about where I can find a C# implementation for
Anyone have any idea how to connect to their FTP server? I am using
Anyone have any idea how I would go about converting a timestamp in milliseconds
Does anyone have any suggestions as to how to go about designing a container
Does anyone have any suggestions as to how to version an iphone application aside
Hello Assume I have the set of numbers I want a quick to calculate
Anyone have any experience yet getting Radiant CMS extensions to actually make it onto

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.