I read the first four downloadable chapters of the SitePoint book on PHP and MySQL. Have a question as a newbie.

The 4th free chapter showed how to create a jokes database, no real problems with understanding the chapter although I haven't yet been able to test out the code. Where does the jokes database reside? In the same folder as the PHP code that creates it? If so, how do I access a database that exists in another folder?