Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-19-2011, 01:36 PM   #1 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 1
Nicov is on a distinguished road
Post Insert stuff in fields - execute to MySQL or Mail

Hello.

I am making a app where I will give the user the opputunity to send in his Name, a category and some text to me. Then I can approve this text and put it in the app. Example: I have an App which have jokes on it. I Give the user the opportunity to write jokes to me, which i can approve and launch to the app.

How do I do this? Is it possible for the entered text to be send to my email, or a MySQL database?

Anyone have some suggestions?
Nicov is offline   Reply With Quote
Old 09-19-2011, 02:42 PM   #2 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by Nicov View Post
Hello.

I am making a app where I will give the user the opputunity to send in his Name, a category and some text to me. Then I can approve this text and put it in the app. Example: I have an App which have jokes on it. I Give the user the opportunity to write jokes to me, which i can approve and launch to the app.

How do I do this? Is it possible for the entered text to be send to my email, or a MySQL database?

Anyone have some suggestions?
Mail would work, and be pretty easy to implement, but it would not be a great user experience. The user would have to use the mail composer view, and click send in order to send you the email.

It would probably be better to have a server running on a hosting service that accepts files through an HTTP put, or a PHP script.

The open source ASIHTTPRequest framework makes it easy to do HTTP puts and gets. I haven't used it, but I've skimmed the documentation, and it seems to make it easier than using the raw system tools.

The bigger challenge is writing the server-side code to parse the incoming data (jokes) and package them up for the app.

You'd also need a mechanism for delivering the updated database to the user. A PHP script would be perfect for this. You could use a timestamp on your app that would remember the last date you were updated, and the host could be written to only send down the records that had been added/changed since that date, to reduce the amount of time required for updates.

I'd suggest buying a book on PHP/MySQL servers. That's way beyond the scope of a forum post.

Bear in mind that you will need to run this server with a static IP address, on a system that has 24/7 up-time. That usually means renting space on a hosting service, which will mean you have to spend money every month to maintain your app. (our company looked into it, and found that most ISPs here in the US want $100/month at a minimum just for a static IP address. Hiring a hosting service is more economical, because they can spread the hosting costs like network capacity, battery backup, redundant computers, data backup and recovery, etc. across lots of customers.) You should make sure you get enough continuing revenue from your app to pay that continuing cost. If you get thousands of sales initially, and then no sales at all after a while, how will you pay for your server costs after 2 years? What about 5 years?
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 10-18-2011, 10:29 PM   #3 (permalink)
Registered Member
 
Join Date: Jan 2011
Location: Tokyo
Posts: 163
kazbluesky is on a distinguished road
Default

sdfv
kazbluesky is offline   Reply With Quote
Reply

Bookmarks

Tags
database, email, mysql, xcode

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 392
16 members and 376 guests
7twenty7, eski, EvilElf, fiftysixty, HemiMG, iOS.Lover, JackReidy, jarv, n00b, pbart, Pudding, sacha1996, teebee74, UMAD, VinceYuan, yuncarl28
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,672
Threads: 94,121
Posts: 402,905
Top Poster: BrianSlick (7,990)
Welcome to our newest member, yuncarl28
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:12 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0