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

Thread: SQL in a game?
View Single Post
Old 02-12-2010, 04:46 PM   #3 (permalink)
fondu-Dev
Anyone for iPad Dev?
 
Join Date: Sep 2009
Location: Take a Guess
Posts: 74
fondu-Dev is on a distinguished road
Default

Kalimba is correct. There is no reason for a SQL database.

However, I use SQL databases for my high score systems.
This is how it is done. On some kind of web server, make a php file that uses $_GET to get information from the URL (The data you want). The iPhone can do a simple HTTP request with the variables in the URL. The PHP file can see what information it needs and echo the information to the page. The iPhone can parse this information into each individual strings.

EXAMPLE:

URL: www.example.com/example.php?x=1$y=example
PHP RETURN: 1:example

Use the iPhone to get that string then split the string into a array with the information. You can get the information in the string by stopping at the : character and keep going until the string stops.
fondu-Dev is offline   Reply With Quote
 

» Advertisements
» Online Users: 768
15 members and 753 guests
AngryOrange, bomzie, carmeliaxw97, erdinc27, hacker073, HemiMG, iekei, ilmman, mkjarred, Nuncha, reficul, Sophie100, stevenkik, thassman, tim0504
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,473
Threads: 94,040
Posts: 402,625
Top Poster: BrianSlick (7,978)
Welcome to our newest member, iram91417
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:46 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.