mysql_connect conflict
-
I have a database that is entirely separate (though on same server) from wordpress and I am trying to pull information from it to display on the blog. I have a function that looks like this
$db = mysql_connect(“hostname”, “username”, “password”) or die(“Check DB connection settings”);
// stuff here
mysql_select_db(“db_name”, $db);
mysql_close($db);It doesn’t matter what I have in the middle, in fact I have it commented all out at the moment, as long as I invoke “mysql_connect” on the page, nothing else from WordPress loads correctly. Is there another way I’m supposed to do this? Thanks for your help!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘mysql_connect conflict’ is closed to new replies.