eak1234
Member
Posted 2 years ago #
Hello,
I'm a php developer new to the wonderful world of wordpress.
I want to display some data from another database on a wordpress page.
Does anyone know of any tutorials - or can explain to me what the best way is to accomplish this?
It's just a simple query - I just need to display the records on a page.
Thanks!
jeffdempsey
Member
Posted 2 years ago #
WordPress doesn't have anything built in utilities to access out side databases. You'll have to write your own connection string for this and echo the data where you'd like it to display.
eak1234
Member
Posted 2 years ago #
Oh sure, that would not be a problem.
I'm just curious what would be the best way to do so.
I would like to still use the template - thus would you create a page within WordPress and edit the page.php? - add an if then statement if it is the page I would like to display data on - then start executing against the other database? - or is there a better way to do so?
Thanks!