This is the code (PHP & Swift/iOS end) for the iOS database connectivity App I created earlier.
This App allows you to connect to an online database(mySQL) from Swift, using PHP. You may edit all this code and use it for yourself.
To make this work, follow these steps:
-
Adjust the PHP end to work with your website
-
Upload the PHP end to your website
-
Adjust the iOS end to work with your PHP
-
Try it out!
This will also work without modifying, since it is connected to my database. You may try it out with my database.
NOTE: The iOS end is slightly different from the iOS end in the video, this version can get AND upload data in the same App.
If you have any questions, mail me at: tajymany@gmail.com