简体   繁体   English

将用户信息存储在wp数据库中,并在注册时使用单独的数据库

[英]store user info in wp database and separate database on registration

I'm working on a site for company that is already using a program for scheduling clients, and keeping their information. 我正在一家公司的网站上工作,该公司已经在使用一个程序来计划客户并保留其信息。 This program also allows web access to the database. 该程序还允许通过Web访问数据库。 On the site I've chosen to use Wordpress due to some of their requirements. 在网站上,由于某些要求,我选择使用Wordpress。

My problem is they want to allow people to register online. 我的问题是他们希望允许人们在线注册。 So if I create a custom registration form, how can I store some data in the wordpress database, and the rest in another database? 因此, 如果我创建一个自定义注册表格,该如何将某些数据存储在wordpress数据库中,而其余数据存储在另一个数据库中?

I'm also planning on calling the programs database to display additional information about the user on the site, such as their schedule. 我还计划调用程序数据库以显示有关该站点上用户的其他信息,例如时间表。 Am I going in the wrong direction, will this cause problems in the future? 我走错了方向,这将来会引起问题吗?

Additional info: 附加信息:

  • The program they use is called Links Modular Solutions 他们使用的程序称为链接模块化解决方案

You will have to specify two connections for different databases and store what you what and where you want. 您将必须为不同的数据库指定两个连接,并存储所需内容和所需位置。

eg algorithm as follows: 例如算法如下:

# connect to db1 host
# select db1
# query/insert db1
# connect to db2 host
# select db2
# query/insert db2

Needless to say that you will need both db access data and access to the PHP scripts/server 不用说,您将需要数据库访问数据和对PHP脚本/服务器的访问

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM