Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Xtremespirit319

macrumors regular
Original poster
Jul 9, 2008
225
0
New York
Hey guys I am confused on something. I am trying to connect to a db on godaddy that I have for my application so it can store and pull its information from else where. I'm not sure what i have to do with the syntax (sorry I'm a newb) so maybe you guys can help me out. Thx


My code so far: (mind you there is a username and password on this db)
Code:
sqlite3 *database;
	if (sqlite3_open("BowlingPro.db.2337753.hostedresource.com",&database) != SQLITE_OK)
	{
		UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Test" message:@"Test worked" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
		[alert show];
		[alert release];
	}
	else
	{
		UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Test" message:@"Test not worked" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
		[alert show];
		[alert release];
	}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.