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 -> PHP

 Dynamically switching between tables

Print topic Send  topic

Author Message
materix

Posts: 161
Posted: 07/24/2006, 1:57 PM

Hi.

I have two completely identical tables. The first table called "person1" and the second table named "person2".

Is it possible to have just a single page for inserting, updating and modifying both tables? For instance if I have a session-variable which holds a value stating which table is to be involved.

So my question is: Is is it possible to dynamically switching the table in SQL statements that CCS builds?

View profile  Send private message
peterr


Posts: 5971
Posted: 07/24/2006, 2:09 PM

Sure: http://forums.codecharge.com/posts.php?post_id=42374
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
materix

Posts: 161
Posted: 07/24/2006, 2:30 PM

BeforeExecute and Replace why did I not think of that? :-)

Thx Peter!
View profile  Send private message
peterr


Posts: 5971
Posted: 07/24/2006, 2:37 PM

Because we all need another point of view once in a while :-)
Have fun.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
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.

Web Database

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.