|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
read one mysql,write to another
Hi
I am pretty useless when it comes to writing php, so can anybody point me in the direction of a script that will read one database and take for example username and password, then when the user clicks continue write the username and password to a second database. The reason i would want this is for a site that has a login using one database and a online game using another database, it seems to be bugging the users having to sign up twice. Thanks John |
|
#2
|
|||
|
|||
|
Try doing a search in Google.com for MySQL-Front, i think thats what you want.
__________________
regards, Fulton |
|
#3
|
|||
|
|||
|
Hi Fulton
Thanks for the reply but unfortunately you may have misunderstood me, what I need is a php script that will read one database, and write to another. This needs to be done without any input from me the admin, all automated online in a script so that the users of my site only have to enter one set of details. Thanks anyway John |
|
#4
|
|||
|
|||
|
just write a script the SELECTS the data from 1 database and then put those variable into the other database using the INSERT command.
Is that what you mean? |
|
#5
|
|||
|
|||
|
I think i get what you mean, alternatively you could make your signup script insert into both databases.
__________________
![]() ![]() "Only Linux users see the end of crashes." - Pl4t0 |
|
#6
|
|||
|
|||
|
Quote:
Yes that is exactly what i mean, but i cannot do it, I am new to PHP and i am having difficulty getting to grips with it. So any help would be more than useful. Thanks John John |
|
#7
|
||||
|
||||
|
I don't know if your using sessions or cokkies but you can have the two site look for the same sessions(or cookie). I thinkt hat should od it.
__________________
CHornJr "One day I'll know what I am doing" ![]() My Blog Suanhacky Lodge #49 Rebel Squadrons |
|
#8
|
|||
|
|||
|
You need something like this:
PHP Code:
but if you want to do multiple records, you will need to create an array, you can look at this thread for ideas.http://www.devarticles.com/forum/sh...72&goto=newpost hope this helps a bit |
|
#9
|
|||
|
|||
|
Many thanks
Thanks for that, i will give it a go
John |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > read one mysql,write to another |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|