I’m having a few problems with a blog I’m moving to a new site. Everything is set up correctly and I can log into the admin and create posts etc. The problem is when I go to the blog itself. I just get an error which says ‘Can’t change database ()’ and I’m not sure how to fix this.
I’m trying to change the database by using this:
selectdb( "wordpress","dbLinkInt" );
$query="select * from blog_options";
$result=dbselect( $query,"dbLinkInt" );
Have you done a var_dump() on $GLOBALS to check that what’s in there is what you’re expecting to be there and that there’s nothing missing that you’re expecting to be there?
I tried that but it did it didn’t output anything. I’ve got this working on another domain and it works there. This is on the same server and uses the same database so I don’t understand why it’s not working