最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论