Connecting to the database is something you set up in the config.php file. If it is set up correctly there, then you just make a database call and the config.php file points to the correct database. (I have my database on a different server and it works just fine).
Those errors you posted - running out of memory and invalid key error, are server errors and you should talk to your host about them.
|