I am trying to migrate information from one database to another with a simple php script, but I can not seem to get the code right. There are only 150 lines and I am getting a:
Fatal error: Call to a member function query() on a non-object in
on line 71.
I know I am missing something simple, but I can't figure it out.
I need someone to get this migration script to work for me.