• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

Wordpress copying the user_login field onto a field in a new table

I am using wordpress and I've created a new table in the wordpress database.

I have created a new table which contains a userid field

My question is, is there anyway to make a copy save/sync wordpress's user table user_login field into my new table so that every time there's a new user my table is also populated with the user_login field?
0
error77
Asked:
error77
1 Solution
 
bitlaCommented:
I don't think so, I am eagerly waiting for an answer if it can be done
0
 
Ray PaseurCommented:
Hmm.. Why not consider the WP table to be the canonical data source?  I'm not convinced that adding another table is a great idea.

But that said, you might be able to use this: http://dev.mysql.com/doc/refman/5.0/en/create-trigger.html
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now