School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,119 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,971 people online right now. Registration is fast and FREE... Join Now!




Bridging MySQL User Tables

 

Bridging MySQL User Tables

xpainkillerx

25 Jun, 2009 - 10:04 AM
Post #1

New D.I.C Head
*

Joined: 25 Jun, 2009
Posts: 4

I am wanting to bridge two users tables in DB. I was wondering how i cando this.

This post has been edited by xpainkillerx: 25 Jun, 2009 - 10:07 AM

User is offlineProfile CardPM
+Quote Post


xpainkillerx

RE: Bridging MySQL User Tables

25 Jun, 2009 - 10:06 AM
Post #2

New D.I.C Head
*

Joined: 25 Jun, 2009
Posts: 4

how do you make a user table bridge in mysql database?
User is offlineProfile CardPM
+Quote Post

RPGonzo

RE: Bridging MySQL User Tables

25 Jun, 2009 - 10:11 AM
Post #3

// Note to self: hmphh .... I forgot
Group Icon

Joined: 16 Mar, 2009
Posts: 771



Thanked: 92 times
Dream Kudos: 25
My Contributions
Join them in your query .... if we can see the code your working with we could/would help more
User is offlineProfile CardPM
+Quote Post

PsychoCoder

RE: Bridging MySQL User Tables

25 Jun, 2009 - 10:14 AM
Post #4

I Code, Therefore I am
Group Icon

Joined: 26 Jul, 2007
Posts: 14,934



Thanked: 517 times
Dream Kudos: 11550
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

My Contributions
Topics merged, please don't create duplicate topics smile.gif

@xpainkillerx: I took your post from the Q and A thread as that thread isnt for questions like this. I also moved the duplicate from PHP to the Databases forum and merged the two.
User is offlineProfile CardPM
+Quote Post

xpainkillerx

RE: Bridging MySQL User Tables

25 Jun, 2009 - 10:28 AM
Post #5

New D.I.C Head
*

Joined: 25 Jun, 2009
Posts: 4

what code? im in mysql. I want to bridge my "uses" table to my "accounts" table, so every time a user is added to my "users" table it is copied to my "accounts" table (username and password).
User is offlineProfile CardPM
+Quote Post

RPGonzo

RE: Bridging MySQL User Tables

25 Jun, 2009 - 10:47 AM
Post #6

// Note to self: hmphh .... I forgot
Group Icon

Joined: 16 Mar, 2009
Posts: 771



Thanked: 92 times
Dream Kudos: 25
My Contributions
Why store the same info twice in two different tables? maybe insert userid and username into second table for identification purposes and for that it would be best to just use a second query ... in my opinion
User is offlineProfile CardPM
+Quote Post

xpainkillerx

RE: Bridging MySQL User Tables

25 Jun, 2009 - 10:54 AM
Post #7

New D.I.C Head
*

Joined: 25 Jun, 2009
Posts: 4

"users" table refers to my website where users register. "accounts" table refers to software that reads username and password for login. I simply want the username and password from "users" table to be copied to "accounts" table everytime a new entry is added.
User is offlineProfile CardPM
+Quote Post

RPGonzo

RE: Bridging MySQL User Tables

25 Jun, 2009 - 11:32 AM
Post #8

// Note to self: hmphh .... I forgot
Group Icon

Joined: 16 Mar, 2009
Posts: 771



Thanked: 92 times
Dream Kudos: 25
My Contributions
If you don't want to manually run the second query look into MySQL triggers ... im not familiar with them but your in the DB forum now maybe someone could help you better than me with them ...

Sorry im not much help in that area biggrin.gif sleep.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 01:40PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month