CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 access 2 databases in a record form

Print topic Send  topic

Author Message
troy

Posts: 12
Posted: 04/30/2007, 2:35 AM

hi there:
im using mysql, php and ccs 3.1 full edtion.

my question is.
i have 2 databases in the one project and they are both on the same server.
One database is a mailing list database and the other database stores all the records from a user signup form.
I want to be able to have one record form with fields from the user database and one field from the mailing list databese. (being the email field.)

so when the user signs up there email will be stored in th mailing list database and the rest in the user database when they hit the submit button.

i have read its to do with have the right SQL quiery, does anyone no if this is possable to do.
or t do with "stored procedures", witch i dont no much about.

thank you
troy....


View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 04/30/2007, 4:05 PM

troy
One way that you can accomplish this is to create a field on the form that will store the one value from the second database. Once the users clicks the submit button you can create code in the After/Before Submit Event that will take that value and automatically submit it (using custom SQL) to the second database (this is transparent to the user).
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.