madridben
Member
Posted 4 years ago #
Hi,
I have a list of phrases in a seperate mysql database that I want to display on a page on my site. It is on a different server at the moment and ideally would stay there, but I can move it over to the same server as the wp installation if necessary.
Any advice on how to do this in either case? I need to know how to connect to this other database table which isn't part of the wp database.
Many thanks.
Just run a sql query pulling the data out. Not really a WP issue.
madridben
Member
Posted 4 years ago #
Hmmm, but if it isn't in the wp database, how do I connect to the database?
Again not really a wp issue. You'll need to write a sql query in php to pull the data out.
duhkneez
Member
Posted 4 years ago #
Would content pulled from a separate database be included in search results? (Using a "search-everything" plugin.)
Would content pulled from a separate database be included in search results? (Using a "search-everything" plugin.)
Nope .. still only the WordPress DB.
Otherwise you'd have to enter in different database name, user, and pass to make it search a seperate DB.
I'm looking for one of these options now.