mysql - how to access 2nd Mysqli Database from different server for wordpress

admin2025-03-20  4

hello I have an old website hosted using Codeigniter as it is hard to customize I decide to change to Wordpress now the problem is I have student result on old website server. I want to access them on Wordpress website, I have PHP scripts from old website to run them on Wordpress but I don't know how to get or access 2nd MySQL database on Wordpress so I can show the student result on Wordpress website new website /

I hope you understand the question/problem if you need an explanation, please ask. Thank You

hello I have an old website https://www.manthanpublication/manthantest hosted using Codeigniter as it is hard to customize I decide to change to Wordpress now the problem is I have student result on old website server. I want to access them on Wordpress website, I have PHP scripts from old website to run them on Wordpress but I don't know how to get or access 2nd MySQL database on Wordpress so I can show the student result on Wordpress website new website https://manthanwelfarefoundation/

I hope you understand the question/problem if you need an explanation, please ask. Thank You

Share Improve this question edited May 20, 2020 at 10:43 fuxia 107k38 gold badges255 silver badges459 bronze badges asked May 20, 2020 at 9:12 swapnil thoratswapnil thorat 15 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You can create a new instance of the wpdb object. It is explained in many posts like this one: Using wpdb to connect to a separate database

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1742416345a212677.html

最新回复(0)