PHP/MySQL connecting to device

Discussion in 'Web Design and Development' started by HarryWorksInc, Apr 21, 2010.

  1. HarryWorksInc macrumors regular

    Feb 21, 2010
    Hello, I am relatively new to Web Development so i'm sorry if this is a stupid question.

    I have created a MySQL data base with a table of users and their passwords along with some various account information, I have successfully been able to read and write into the database with PHP but I am making an iPad Application in which I would like it to upload data to the MySQL Database.

    I am confused as to how to do this and am having trouble finding examples. I understand the concept that I must load a web page in the background with the data in the URL somehow but i don't understand how i can decipher the URL into the php. Does anyone know of an example or can tell me how to do this?
  2. Cerebrus' Maw macrumors 6502

    Mar 9, 2008
    Brisbane, Australia
    The PHP/MySQL part of your application is blind to whatever device is requesting the page from your server.

    So if you can visit your page via a desktop browser and upload your data (ie, via a form for example) it will work the exact same way when your iPad comes along and visits your page.*

    If you are asking how to upload from a page to a database via php, then there are tutorials galore on the net. I wold recommend Tizag, w3schools and a few others.

    *as long as its not flash ;)
  3. NoNameBrand macrumors 6502

    Nov 17, 2005
    Halifax, Canada
    Look up $_POST and $_GET. And 'post' and 'get' requests to understand the differences.

Share This Page