Question: I have made a website (php) and it connects to a database so it can have users and post material. Imagine it like a forum. Now how would I go about making an iPhone app that connects to the same database. I am already teaching myself c++ to make the app, but am not sure how I will connect it to the database.

Answer: 
To do web-based databases, the best practice\*\*\* is to use HTTP requests to a PHP script. That way you will not have to establish a database connection from the app, leaving Usernames and Passwords excluded from the actual project. Create some PHP scripts that will do what you need by sending POST and GET variables.

\*\*\*In my experience and preference
You just setup a [RESTful webservice](http://www.slimframework.com/), then access to it on Obj-C via [Restkit](http://restkit.org/).

EDIT: btw if you haven't got fancy app needs, just [make your website responsive](http://en.wikipedia.org/wiki/Responsive_web_design) and you'l be done.