Hi, I am really happy with WP. However, I am trying to change the template so that WP fits in with the site design.
The site uses include files to display side menus and other items. The first file included is a function script which has database access details.
When I add the includes, WP displays errors like so:
[Table 'dbase.wp_users' doesn't exist]
SELECT * FROM wp_users WHERE ID = 3
[Table 'dbase.wp_links' doesn't exist]
[Table 'dbase.wp_categories' doesn't exist]
[Table 'dbase.wp_posts' doesn't exist]
WP is actually in dbase_4, not dbase. It is getting the actual posts correctly from dbase_4, but my include function file seems to be throwing WP, since the file has "dbase" as the database to connect to.
I don't get this, since the variables for database access are different from WP's:
$dbhost = "myhost";
$dbuser = "dbase";
$dbpass = "mypass";
Any ideas on how I can fix this?
Thanks.